Re: Discrepancy between XCB and X11 MappingNotify

[email protected] Thu, 03 Apr 2025 21:40:33 +0000
Newsgroups gmane.comp.freedesktop.xcb
Message-ID <[email protected]>
> XKB-using applications appear to be expected to request that
> NewKeybo=
ardMapping events be delivered to them, and that now includes
> all Xlib =
applications.
I'm confused. Let's say there is an X11 application out the=
re which was made for
a libX11 version not using XKB (expecting to get Ma=
ppingNotify events). Now when
this application is linked with another lib=
X11 library built with XKB, then
this application will no longer work. I =
want to know whose decision it was to
forcefully include XKB like that, i=
t just seems odd to me. But it looks like
this dates back to earlier than=
 2003 so it's only a deal in my hypothetical
scenario.

Thank you Kei=
th, for helping me work through pretty much all "discrepancies" I
noticed=
.

There was one more thing in the Stackoverflow post which was what I =
mentioned
where XKeysymToKeycode(dpy, XK_F1) is used to "cache the modifi=
er and keymap
information" which (I tried it, it actually worked) yields =
MappingNotify events.
This really does not make sense in my head.