[Xcb] Problems receiving mapping_notify

Peter Harris git at peter.is-a-geek.org
Thu Aug 6 09:41:17 PDT 2009

On Thu, Aug 6, 2009 at 11:35 AM, Michael Stapelberg wrote:
> 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?

Works for me (after including <string.h> for the declaration of
memset). I assume your .Xmodmap isn't an empty file.

What versions of xcb and xcb-event are you using?

Peter Harris

More information about the Xcb mailing list