<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span style="font-weight: bold;">Hi Glynn and other <font face="Arial" size="2"><font size="2">guys,</font></font></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><span style="font-weight: bold;"><font face="Arial" size="2"><font size="2">after <font size="2">some reads and looking at the event.c from jwm</font>, my clock works!</font></font></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><span style="font-weight: bold;"><font face="Arial" size="2"><font size="2"><font size="2">I<font size="2">'m using a structure like this :</font></font></font></font></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color:
 transparent; font-style: normal;"><font face="Arial" size="2"><font size="2">        while(stop==0) {<br><br>                while(XPending(dpy)==0){<br>                        usleep(100);<br>                        updateClock(&myClock);<br><br>                }<br><br>                XNextEvent(dpy, &e);<br>               
 switch(e.type){<br>                        case Expose<font size="2">               </font>: XFlush(dpy); break;<br>                        case KeyRelease         : stop = keyRelease(&e,dpy,&(myClock.w)); break;<br>                        default                         : break;<br>               
 }<br>        }<br></font></font></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">notes : <br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">XPending() == XEventsQueued() with mode Queued-AfterFlush.<br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">I did some change in updateClock() too, but is not the most important.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><span style="font-weight: bold;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial;
 background-color: transparent; font-style: normal;"><span style="font-weight: bold;">thx again for your help.</span><br></div><span style="font-size: 13px;"><span style="font-family: Arial;"><br><span style="font-weight: bold;">-Nicoo</span></span></span><br>  </div></body></html>