-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arrow keys not working in XWayland #22
Comments
The issue is gone if I use the wlr backend ( |
That is odd indeed, as wlr is the default backend when none is specified. Which compositor are you using? And could you possibly post the log file from when it is broken and when it seems to work (at least the initial part -- be somewhat careful, given that this is basically a keylogger) |
Hi there. This is an old issue but I want to document this as best I can for future users. I had the same problem when I tried to switch from i3/Barrier to Sway/Waynergy. The problem is, at least on my device, the keycodes sent by the Windows server for the arrow keys, INS/DEL/etc cluster, and some keypad keys are greater than 318. Keycodes greater than 318 are accepted by Wayland but not X, resulting in XWayland dropping them on the floor. I ended up completely disregarding the documented ~/config/waynergy/config.ini pertinent points
~/.config/waynergy/xkb_keymap entirety
No custom ~/.xkb keymap at all, as you can see. The xkb_key_offset of 8 syncs almost everything on a W10 US pc105 QWERTY bog-standard keyboard to the In the event that a key is missing, the process to remap it is as follows:
This is a tedious process if a lot of keys are incorrect (maybe try to find another keycode map in xkb if this is the case). I'm hoping we can figure out a better way to handle this, but for now this should at least form the basis of getting someone past the hard blocker of "Half my keyboard is scrungled". Also I'm half hoping someone will look at this and say "You're daft, here's a better way" :) |
pls mention the comment above in some faq or readme, it helped out alot also for this,
if its out of range, and it logs without |
The arrow keys in XWayland windows with a Windows primary (synergy). The native wayland applications are working fine. I am using version 0.0.3. In
config.ini
xkb_key_offset = 7
is set and I installed the provided win keymap file.With
loglevel=4
, I can see the arrow codes coming in but they don't have any effect in XWayland windows. I also verified this inxev
andwev
.The text was updated successfully, but these errors were encountered: