GNOME Bugzilla – Bug 764424
`Super` keybindings trigger without Super, on Wayland
Last modified: 2016-04-18 13:28:18 UTC
I have Super+C and Super+V bound to Copy and Paste, respectively. In a GNOME on Wayland session, these actions trigger even with an unmodified "c" or "v" key press, making the terminal unusable. gnome-terminal 3.20.0
We just use whatever events gdk gives us. -> gtk+
This is a failing of mutter. Under wayland, modifiers and keys are sent in separate events. If I press Ctrl-A, I get a modifiers event as soon as I hit Ctrl, and then a key event for the A. For the Super key, the shell hold on to wait if it gets the key release that it iterprets as 'go to overview', so it does not send the modifiers event out. But then, when another key is pressed, the shell just sends the key, and forgets to send out the Super modifier first.
I think you misunderstood me; the problem is that the Super+foo bindings are being triggered even while Super is NOT pressed.
I guess I should say the mutter bug I'm describing makes it hard to test the problem with Super keybindings, since I never get events with the super modifier delivered
I've pushed a fix for the GTK+ side of the problem. Now Super-x works under weston, at least.
(In reply to Matthias Clasen from comment #2) > This is a failing of mutter. > > Under wayland, modifiers and keys are sent in separate events. If I press > Ctrl-A, I get a modifiers event as soon as I hit Ctrl, and then a key event > for the A. > > For the Super key, the shell hold on to wait if it gets the key release that > it iterprets as 'go to overview', so it does not send the modifiers event > out. But then, when another key is pressed, the shell just sends the key, > and forgets to send out the Super modifier first. This should be fixed by https://bugzilla.gnome.org/show_bug.cgi?id=748526#c14 . *** This bug has been marked as a duplicate of bug 748526 ***