Discrepancy between XCB and X11 MappingNotify
Keith Packard
keithp at keithp.com
Thu Apr 3 21:09:07 UTC 2025
> I guess (looking at src/OpenDis.c within libx11) these additional messages are
> caused by XkbUseExtension(...) etc. They are no surprise. But maybe this call
> causes no MappingNotify event to be sent?
Yeah, Xlib does a few things at connection startup which could have been
delayed until actually used. For instance, xcb delays initializing the
BIG-REQUESTS extension until the application uses a request which might
need it. As most (modern) applications never use large requests, this
saves time. However, it also appears to always enable XKB for some
reason.
And, yes, XKB affects MappingNotify events, in particular once XKB is
initialized, MappingNotify events caused by switching keyboards are
masked. XKB-using applications appear to be expected to request that
NewKeyboardMapping events be delivered to them, and that now includes
all Xlib applications. I'm surprised by this.
--
-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/49b1678b/attachment.sig>
More information about the Xcb
mailing list