libxkbcommon icon indicating copy to clipboard operation
libxkbcommon copied to clipboard

Add tests specific to XWayland

Open wismill opened this issue 1 month ago • 2 comments

Currently we only test Xorg server using xkbcomp, but XWayland requires to be tested slightly differently.

This is motivated by this comment:

I found my mistake: keymap received from Wayland is processed using XkbCompileKeymapFromString(), which then call XkbDDXLoadKeymapFromString() which finally calls RunXkbComp(). But this does not load the keymap in the server and instead creates a .xkm file. The call to XkbDeviceApplyKeymap() is where the server is updated.

wismill avatar Oct 31 '25 18:10 wismill

Idea: use headless Weston

wismill avatar Oct 31 '25 19:10 wismill

xwayland-run would be most useful, but there is an issue with all the headless compositors: there is no input by default nor an easy way to add some!

It seems for now a XWayland test can only be achieved by writing a minimal headless Wayland compositor with some dummy default keyboard.

wismill avatar Nov 04 '25 17:11 wismill