Good afternoon,<br><br>I am new to the list so please excuse me for jumping in, however I develop software for use with touch screens. I have experienced the exact same problem but with Windows 7 (I know, wrong platform). However the root cause was with the device itself either missing event signals or them being out of order.<br>
<br>From your email you imply you've only looked at the output of X, rather than what is coming from the device via USB.<br><br>Regards<br>Phil<br><br><div class="gmail_quote">On 12 October 2012 14:38, Thierry Reding <span dir="ltr"><<a href="mailto:thierry.reding@avionic-design.de" target="_blank">thierry.reding@avionic-design.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I've been seeing a very strange issue. Originally this was observed when<br>
using a browser with an onscreen keyboard. It would sometimes happen<br>
that the keys on the keyboard would get stuck and be repeatedly sent.<br>
<br>
While trying to debug this, I came across a reliable way to reproduce it<br>
using xwininfo. Basically I would run xwininfo and select the onscreen<br>
keyboard. This would immediately result in the key being pressed and not<br>
receiving a release event. Using other keys on the onscreen keyboard<br>
would make them pressed as well, but never released either, resulting in<br>
repeated keypresses received by the browser. It seems like X for some<br>
reason believes that the press event is actually a release and vice-<br>
versa.<br>
<br>
In order to find out what exactly was going on, I fired up xev with the<br>
window XID as reported by xwininfo. This would indeed show the repeated<br>
key events sent to the onscreen keyboard's window. Strangely enough, if<br>
xev is started without an existing window XID, generating touch events<br>
in that window seems to "fix" the issue. The keyboard can be used<br>
reliably again.<br>
<br>
Furthermore, when running xwininfo and selecting the onscreen keyboard,<br>
a second call to xwininfo would fail, saying it cannot grab the mouse.<br>
This issue can be reliably reproduced independent of the onscreen<br>
keyboard and works with any X window. So opening an xterm for instance,<br>
then running xwininfo and selecting xterm will cause any subsequent<br>
calls to xwininfo to fail. Running xev and generating touch events in<br>
its window again fixes things.<br>
<br>
It seems like the X server doesn't properly release the grab and gets<br>
the touch down and up events mixed up. Note that all of this only<br>
happens when using a touchscreen device. Performing the same tests using<br>
a regular USB mouse to select the X window for xwininfo doesn't show the<br>
same behaviour.<br>
<br>
I'm using version 1.13 of the X server and xf86-input-evdev 2.7.3. Can<br>
anybody else reproduce this?<br>
<br>
If you need any more information I'd be happy to provide it.<br>
<span class="HOEnZb"><font color="#888888"><br>
Thierry<br>
</font></span><br>_______________________________________________<br>
<a href="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</a>: X.Org development<br>
Archives: <a href="http://lists.x.org/archives/xorg-devel" target="_blank">http://lists.x.org/archives/xorg-devel</a><br>
Info: <a href="http://lists.x.org/mailman/listinfo/xorg-devel" target="_blank">http://lists.x.org/mailman/listinfo/xorg-devel</a><br></blockquote></div><br>