-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
KDE Wayland - Shortcut keys only work when xwayland window has focus #121
Comments
Mh, seems KDE on Wayland needs something similar as 6501486 was for GNOME... |
Edit: I should have read the readme. It looks like I can manually configure the keys as a workaround. I just need to manually bind the keys in KDE's system settings to gromit-mpx's functionality. While not ideal, at least I can still use this great tool on wayland. edit2: the only problem remaining is that the gromit-mpx overlay blocks clicks. On Xorg, I can click through the overlay to interact with the applications behind the drawing |
If you could come up with kwriteconfig commands to set/unset key bindings, that'd help a lot! For the second, click-through, issue, please open a separate report. |
I can confirm this and I use Sway, not KDE. Shortcut keys only work on xwayland windows (e.g. leafpad), and they don't work on the wayland windows (e.g. firefox, or foot terminal emulator). I can draw on wayland windows only if I start gromit-mpx then I use the command line for toggle, clear, etc. (But then I can't click on the workspaces and other stuff on swaybar, gromit-mpx has an overlay.) Arch Linux |
@Ka-Hu Please open another issue for Sway as the shortcut keys have to be implemented for each window manager/compositor specifically. |
Until flatpak/xdg-desktop-portal#624 adds some cross-platform way of doing this, additional code handling desktop-environment-specific cases in Pull requests welcome! |
Correct. v1.4.2 has 8aa79fe |
I am experiencing a similar problem on a fresh install of Ubuntu 22.04 using Gnome. I'm using v1.4.2 of gromit-mpx. This is on a Dell Latitude 9520 with an active pen. Pressing F9 works when the following applications have focus:
It fails when the following applications have focus:
I'm not very experienced with Wayland, so I don't know if this is the same issue. I'd be happy to provide more information. Also, is there a work-around? |
@godmar You're exactly seeing what this issue is about. Hotkeys are detected by X11 apps (Firefox, xev, xterm) and thus by the X server (XWayland) which can then tell Gromit-MPX. This does not work with wayland apps though, where only the compositor can intercept hotkeys. That what #121 (comment) is about. |
Got it. So this is not specific to KDE and the issue occurs when using GNOME as well. This comment was confusing in this respect. |
Yeah, that links the workaround, which was for GNOME only. |
I don't understand. Is commit 6501486 supposed to address the problem in Gnome? Is this commit part of v1.4.2? If so, why does it not work for me as I run v1.4.2? PS: as a side note, for me at least, the issue seems more complex. Even when I focus an X11 application before hitting F9, things will not work reliably. I've observed the focus "getting stuck" on a different window (requiring manual Alt-Tab and killing gromit-mpx), and I've observed Wayland windows (gnome-terminal) being left in a state where they are unable to receive keyboard input, even after gromit-mpx has been killed. |
PS: for anyone wondering. 6501486 checks for whether However, the problem persists even when run with |
@godmar would you be so kind and open a separate bug report for this? You can also post Gromit-MPX's debug output there. |
flatpak/xdg-desktop-portal#624 might help, at least for flatpaks and xdg-desktop-portal v1.16. |
xdg-desktop-portal-kde has implemented this in https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/f0e3102c9a4e5930cc60fb001bae44289195b771 which apparently is in 5.27.0 |
On KDE Wayland (Plasma 5.21 and earlier), Gromit-MPX's shortcuts (F9, I stuck to defaults) only work when the current window with focus is using xwayland. I can't see anything set in the global shortcuts system settings for this key so I don't believe it's being overridden.
The text was updated successfully, but these errors were encountered: