Re: redraw, who (xlib/cairo), when...

First Last <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.