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