[cairo] redraw, who (xlib/cairo), when...

First Last begre1929 at yahoo.com
Mon May 27 18:58:36 PDT 2013


Hi Glynn and other guys,
after some reads and looking at the event.c from jwm, my clock works!
I'm using a structure like this :
        while(stop==0) {

                while(XPending(dpy)==0){
                        usleep(100);
                        updateClock(&myClock);

                }

                XNextEvent(dpy, &e);
                switch(e.type){
                        case Expose               : XFlush(dpy); break;
                        case KeyRelease         : stop = keyRelease(&e,dpy,&(myClock.w)); break;
                        default                         : break;
                }
        }

notes : 

XPending() == XEventsQueued() with mode Queued-AfterFlush.

I did some change in updateClock() too, but is not the most important.

thx again for your help.

-Nicoo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20130527/da216c25/attachment.html>


More information about the cairo mailing list