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

Alt remaps do not work on GTK apps on GNOME under Wayland. #294

Open
denysonique opened this issue May 19, 2023 · 4 comments
Open

Alt remaps do not work on GTK apps on GNOME under Wayland. #294

denysonique opened this issue May 19, 2023 · 4 comments

Comments

@denysonique
Copy link

When using the simple below example config Xremap does not perform the select all action on Gedit.
In the same GNOME session it works for Kate under XWayland.
For KDE Wayland it also works with no problem.

keymap:
  - name: Emacs bindings
    remap:
      M-a: C-a

gnome-shell: 42.5
Kernel: 5.19.0-41-generic #42~22.04.1-Ubuntu

@k0kubun
Copy link
Contributor

k0kubun commented May 22, 2023

I suspect you might be using the x11 binary instead of gnome one. You're supposed to use the gnome xremap if you use GNOME under Wayland.

If you're not using it yet, please install https://extensions.gnome.org/extension/5060/xremap/ first, and then install the gnome xremap.

@denysonique
Copy link
Author

denysonique commented May 23, 2023

I am using v0.8.5 from xremap-linux-x86_64-gnome.zip

$ md5sum xremap
2b3485585081e20c2d348ac2fe4a8ce9  xremap

I do also have the extension installed

$ gnome-extensions list --enabled | grep xremap
xremap@k0kubun.com

I also tried the cargo install xremap --features gnome version to no avail

@denysonique
Copy link
Author

After inspecting what events get sent etc I realized a delay may be helpful and It appears that keypress_delay_ms: 20 seems to help.

@k0kubun
Copy link
Contributor

k0kubun commented May 28, 2023

Oh, I see. Thank you for finding a workaround. We've seen a similar report before, but the event sequence generated by xremap was correct and the same thing just worked for X11. So I currently blame Wayland for not handling delay-less sequences properly.

We should probably build an evdev-only repro of this issue and report it upstream, but in the meantime, please consider using the keypress_delay_ms workaround.

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