<div>Hi all,</div>
<div> </div>
<div>I'm using the standard X11 Xlib API to handle Xevents.</div>
<div>See the following code segment:</div>
<div><font size="2">
<p align="left"><font face="courier new,monospace">XSetWindowAttributes attr;</font></p>
<p align="left"><font face="courier new,monospace">XEvent event;</font></p>
<p align="left"><font face="courier new,monospace"></font></p>
<p align="left"><font face="courier new,monospace">attr.event_mask = KeyPressMask | KeyReleaseMask |</font></p>
<p align="left"><font face="courier new,monospace">StructureNotifyMask | FocusChangeMask;</font></p>
<p align="left"><font face="courier new,monospace"></font></p>
<p align="left"><font face="courier new,monospace">XSelectInput(m_Vw->getDisplay(), m_Vw->getWindow(), attr.event_mask);</font></p>
<p align="left"><font face="courier new,monospace"></font></p>
<p align="left"></p></font><font face="courier new,monospace"><font color="#7f0055" size="2">while</font><font size="2">(!m_ThreadsStopped)</font></font>
<p align="left"><font face="courier new,monospace" size="2">{</font></p>
<p align="left"><font size="2"><font face="courier new,monospace"> XNextEvent(m_Vw->getDisplay(), &event);</font></font></p>
<p align="left"><font face="courier new,monospace"><font color="#7f0055" size="2"> if</font><font size="2">( handleXEvents(event) != EV_OK ) </font><font color="#3f7f5f" size="2">// a closing or error events has occured - exit
</font></font></p><font size="2">
<p align="left"><font face="courier new,monospace"> {</font></p>
<p align="left"></p></font><font face="courier new,monospace" color="#7f0055" size="2"> return</font><font size="2"><font face="courier new,monospace">;</font>
<p align="left"><font face="courier new,monospace"> }</font></p>
<p align="left"><font face="courier new,monospace">}</font></p>
<p align="left"> </p>
<p align="left">I'm running on a MIPS machine.</p>
<p align="left">What I had noticed, is that from the moment that an event has occurred to the time I receive it - there's a certain delay (~0.2-0.3 secs). The MIPS machine is only 300Mhz - but, alas, that's very strange behaviour from the X server.
</p>
<p align="left">Any suggestions will be highly appreciated!</p>
<p align="left"> </p>
<p align="left">Thanks!</p></font></div>