Missing KeyRelease events from root window

Daniel Brockman daniel at brockman.se
Thu Jan 25 05:53:29 PST 2007


I believe some part of X (the server, Xlib, or something ---
I do not really understand how it all works together) drops
some key release events on the floor.

The following program demonstrates this (AFAICT) bug.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-c
Size: 2299 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20070125/1dea8591/attachment.bin>
-------------- next part --------------


I get the following output:


weewam:~$ ./test
Try pressing `a', then pressing `b' (still holding `a'), then releasing `a',
and finally releasing `b'.  See if you get the final release event.

Then run this program with `--create-window' and try the same thing.

Press event for `a' (will process 20 more events).
Press event for `b' (will process 19 more events).
Release event for `a' (will process 18 more events).


weewam:~$ ./test --create-window
Try pressing `a', then pressing `b' (still holding `a'), then releasing `a',
and finally releasing `b'.  See if you get the final release event.

Press event for `a' (will process 20 more events).
Press event for `b' (will process 19 more events).
Release event for `a' (will process 18 more events).
Release event for `b' (will process 17 more events).


Notice that the final release event is missing in the first
run (i.e., when the program is watching the root window).

Hopefully I am just doing something wrong.

I am running ratpoison 1.4.0 (a tiling window manager), and
the following X stuff:


weewam:~$ X -version

X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: UNKNOWN 
Current Operating System: Linux weewam 2.6.18-3-686 #1 SMP
   Sun Dec 10 19:37:06 UTC 2006 i686
Build Date: 30 December 2006
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present


weewam:~$ apt-cache policy libx11-6
libx11-6:
  Installed: 2:1.0.3-4
  Candidate: 2:1.0.3-4


Regards,

-- 
Daniel Brockman <daniel at brockman.se>


More information about the xorg mailing list