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
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com

Reply via email to