Discrepancy between XCB and X11 MappingNotify
Keith Packard
keithp at keithp.com
Fri Apr 4 01:08:06 UTC 2025
From: qqdpv04z at thepsauce.anonaddy.com
Date: Thu, 03 Apr 2025 21:40:33 +0000
> I'm confused. Let's say there is an X11 application out there which was made for
> a libX11 version not using XKB (expecting to get MappingNotify events). Now when
> this application is linked with another libX11 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, it 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.
Yeah, checked X11R5 which doesn't have this "feature", so it happened
sometime between 1991 and 2003. I'd suggest fixing it, but that seems
more likely to break things than help...
> There was one more thing in the Stackoverflow post which was what I mentioned
> where XKeysymToKeycode(dpy, XK_F1) is used to "cache the modifier and keymap
> information" which (I tried it, it actually worked) yields MappingNotify events.
> This really does not make sense in my head.
Nor mine. I'd have to dig through the code a bunch to figure out why
that helps...
--
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/xcb/attachments/20250403/1e00dec9/attachment.sig>
More information about the Xcb
mailing list