[Xcb] Problems receiving mapping_notify

Michael Stapelberg michael+xcb at stapelberg.de
Thu Aug 6 08:35:33 PDT 2009


Hi,

I have a problem with receiving xcb_mapping_notify_t events. When I change
the keyboard mapping using setxkbmap, I always receive the event. But using
xmodmap, my application using xcb never gets an event. Programs such as xev
get the event, though.

I’ve attached a small test program which will demonstrate the behaviour. To
be sure this is not related to any software between my X server and the test
program, I ran /usr/bin/X and directly started DISPLAY=:0 ./notify. Then, on
a separate connection (ssh), I issued setxkbmap us, which generated an event,
then xmodmap .Xmodmap, which went unnoticed by my program.

What am I doing wrong? Is this maybe a bug in xcb?

Thanks in advance and best regards,
Michael
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: notify.c
Url: http://lists.freedesktop.org/archives/xcb/attachments/20090806/4d23fb6b/attachment.asc 


More information about the Xcb mailing list