[PATCH kdrive/ephyr] kdrive/ephyr: map host X server's keymap into Xephyr, if supported

Ran Benita ran234 at gmail.com
Tue Feb 23 20:16:48 UTC 2016


On Tue, Feb 23, 2016 at 07:58:04AM -0300, LaƩrcio de Sousa wrote:
> Currently Xephyr doesn't inherit host X server's keymap, which
> may lead to keymap mismatches when typing in a window inside
> Xephyr. If host X server supports XKB extension, this patch
> uses xcb-xkb to apply its keymap in Xephyr. This implementation
> is analogous to Xnest one at commit 83fef4235.
> 
> Supersedes: https://patchwork.freedesktop.org/patch/67504

I have zero context for this patch, but the subject piqued my curiosity,
since I know it is nigh impossible to upload an XKB keymap with current
xcb-xkb. And indeed, it seems you only use XKB here for the controls,
which include some repeat and accessibility info, but not the main
keymap data:
http://www.x.org/releases/X11R7.7/doc/kbproto/xkbproto.html#Global_Keyboard_Controls
The main calls are for the core protocol keymap.

So the sentence "If host X server supports XKB extension, this patch
uses xcb-xkb to apply its keymap in Xephyr." should be adjusted to only
talk about XKB controls and not the entire keymap, I think.

Ran


More information about the xorg-devel mailing list