Skip to content
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

Arrows not working on Wayland #5

Open
somepaulo opened this issue Sep 16, 2022 · 6 comments
Open

Arrows not working on Wayland #5

somepaulo opened this issue Sep 16, 2022 · 6 comments

Comments

@somepaulo
Copy link

In my case (Arch/Gnome latest) the arrow keys don't move the ruler (with or without Ctrl).
All other shortcuts seem to work.

@epilys
Copy link
Owner

epilys commented Sep 16, 2022

I pushed a commit that adds more arrow symbols for gtk accelerators, could you try to see if it works now?

@somepaulo
Copy link
Author

Nope, still not moving.
The system beeps are gone though.

@epilys
Copy link
Owner

epilys commented Sep 16, 2022

Are you using X11 or Wayland? If the former, could you tell me what keycodes show up when you press the arrow keys with xev? https://archlinux.org/packages/extra/x86_64/xorg-xev/

@somepaulo
Copy link
Author

somepaulo commented Sep 16, 2022

I'm on Wayland.
This is a Lenovo laptop with a pretty straight-forward setup, nothing fancy, not much tweaking, two language layouts, standard vanilla Gnome with a few extensions, that's about it.

The keycodes are 111 for up, 116 for down, 113 for left and 114 for right.
Here's what xev detects when I press up, down, left, right:

KeyPress event, serial 38, synthetic NO, window 0x1800001,
    root 0x496, subw 0x1800002, time 80926042, (36,33), root:(36,102),
    state 0x0, keycode 111 (keysym 0xff52, Up), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 38, synthetic NO, window 0x1800001,
    root 0x496, subw 0x1800002, time 80926141, (36,33), root:(36,102),
    state 0x0, keycode 111 (keysym 0xff52, Up), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 38, synthetic NO, window 0x1800001,
    root 0x496, subw 0x1800002, time 80926770, (36,33), root:(36,102),
    state 0x0, keycode 116 (keysym 0xff54, Down), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 38, synthetic NO, window 0x1800001,
    root 0x496, subw 0x1800002, time 80926880, (36,33), root:(36,102),
    state 0x0, keycode 116 (keysym 0xff54, Down), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 38, synthetic NO, window 0x1800001,
    root 0x496, subw 0x1800002, time 80927529, (36,33), root:(36,102),
    state 0x0, keycode 113 (keysym 0xff51, Left), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 38, synthetic NO, window 0x1800001,
    root 0x496, subw 0x1800002, time 80927643, (36,33), root:(36,102),
    state 0x0, keycode 113 (keysym 0xff51, Left), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 38, synthetic NO, window 0x1800001,
    root 0x496, subw 0x1800002, time 80928296, (36,33), root:(36,102),
    state 0x0, keycode 114 (keysym 0xff53, Right), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 38, synthetic NO, window 0x1800001,
    root 0x496, subw 0x1800002, time 80928411, (36,33), root:(36,102),
    state 0x0, keycode 114 (keysym 0xff53, Right), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

@epilys
Copy link
Owner

epilys commented Sep 22, 2022

I wonder if this is wayland related (i.e. the bug is in gdk library, not on the rlr code) keysym seem correct at least 🤔

@somepaulo
Copy link
Author

somepaulo commented Sep 28, 2022

I wonder if this is wayland related

It definitely is. Arrows work fine on Xorg, but not on Wayland.
Kruler somehow works on either server. Maybe there's a clue in their implementation?

It's weird that all the other keypresses are interpreted by the app correctly.

@somepaulo somepaulo changed the title Arrows not working Arrows not working on Wayland Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants