atx / wtype

xdotool type for wayland
MIT License
373 stars 13 forks source link

Fix on Xwayland #1

Closed atx closed 3 years ago

atx commented 5 years ago

For whichever reason the dynamically generated keymap does not propagate to an application running under Xwayland. This is likely a bug somewhere in sway/wlroots/Xwayland.

atx commented 5 years ago

So, this seems to be a combination of X not accepting keycodes larger than 255 in its keymap and also all inputs getting merged together. Not sure if there is any reasonable fix at the moment.

emersion commented 3 years ago

Maybe related: https://github.com/swaywm/sway/issues/5461#issuecomment-872633821

atx commented 3 years ago

Maybe related: swaywm/sway#5461 (comment)

Yup, that seems to do the trick. Thanks for noticing.

Leaving open for a while longer, since:

emersion commented 3 years ago

xkbcli interactive-x11 exits because it checks keycode == 9 to look for Esc, which we use for the 3rd character. Fix: https://github.com/xkbcommon/libxkbcommon/pull/253