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

Modifier keys like Shift, Ctrl, Alt don't always work under XWayland #106

Open
4 of 8 tasks
bk138 opened this issue Nov 17, 2020 · 7 comments
Open
4 of 8 tasks

Modifier keys like Shift, Ctrl, Alt don't always work under XWayland #106

bk138 opened this issue Nov 17, 2020 · 7 comments

Comments

@bk138
Copy link
Owner

bk138 commented Nov 17, 2020

Bug behaviour

Modifier keys like Shift, Ctrl, Alt only work when Gromit-MPX is toggled on over other XWayland windows, but are ignored for drawing over pure Wayland windows. For instance, when toggled over an xterm, all works, but over a gnome-terminal, it does not.

Things tried so far

@TRPB
Copy link

TRPB commented Nov 22, 2020

As a workaround, would it be possible to have a command line option that starts drawing? E.g.

gromit-mpx --draw

That way I can bind F9 im my desktop environment to run that command.

One option would be registering global shortcuts in the desktop environment itself, but I have no idea if there is a standard way of doing this that wouldn't involve different code for kde/gnome/etc.

@bk138
Copy link
Owner Author

bk138 commented Nov 22, 2020

As a workaround, would it be possible to have a command line option that starts drawing? E.g.

gromit-mpx --draw

That way I can bind F9 im my desktop environment to run that command.

One option would be registering global shortcuts in the desktop environment itself, but I have no idea if there is a standard way of doing this that wouldn't involve different code for kde/gnome/etc.

What you mention has already been tackled in #27 with 6501486 - this here is about the modifier keys only.

@vipseixas
Copy link

Is there any workaround for this problem?

If not, is it possible to put a "default tool" selection in the menu?

@jgrocha
Copy link

jgrocha commented Feb 20, 2025

Modifiers are working here, on Wayland, Ubuntu 24.10, GNOME Shell 47.0, gromit 20041213-9build3, nvidia-driver-560

Image

The problem here is the hotkey. I have to open the About box and have it in focus to use F9 to start and end draw mode.

If the About closes (captures ESC, for example), I can not leave the draw mode. Should I open a new issue? Should I add this to #27?

@bk138
Copy link
Owner Author

bk138 commented Feb 21, 2025

@jgrocha modifier keys do work for X11 windows (of which Gromit-MPX is one), not for pure Wayland windows. If the hotkey does not work under GNOME for you, please open a new issue, yes. (Please indicate how you start Gromit-MPX.)

@jgrocha
Copy link

jgrocha commented Feb 21, 2025

@jgrocha modifier keys do work for X11 windows (of which Gromit-MPX is one), not for pure Wayland windows. If the hotkey does not work under GNOME for you, please open a new issue, yes. (Please indicate how you start Gromit-MPX.)

Isn't gnome-terminal a wayland window? I've tested with xprop and it seems to me that gnome-terminal is a wayland window. The modifiers work on top of that window. But maybe I'm missing something. I'm not an expert.

Image

Edit: the issue is: "...don't always work". Sometimes they work :-)

@jgrocha
Copy link

jgrocha commented Feb 21, 2025

I've compiled Gromit-mpx with the last git version (now 1.7 instead of 1.4).
The hotkey works well in 1.7, but the modifiers don't as described.
@bk138 Sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants