After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 764424 - `Super` keybindings trigger without Super, on Wayland
`Super` keybindings trigger without Super, on Wayland
Status: RESOLVED DUPLICATE of bug 748526
Product: mutter
Classification: Core
Component: wayland
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2016-03-31 16:14 UTC by Jan Alexander Steffens (heftig)
Modified: 2016-04-18 13:28 UTC
See Also:
GNOME target: ---
GNOME version: 3.19/3.20



Description Jan Alexander Steffens (heftig) 2016-03-31 16:14:07 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
Comment 1 Christian Persch 2016-04-15 16:41:03 UTC
We just use whatever events gdk gives us.

-> gtk+
Comment 2 Matthias Clasen 2016-04-15 18:52:59 UTC
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.
Comment 3 Jan Alexander Steffens (heftig) 2016-04-15 19:38:27 UTC
I think you misunderstood me; the problem is that the Super+foo bindings are being triggered even while Super is NOT pressed.
Comment 4 Matthias Clasen 2016-04-16 00:07:57 UTC
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
Comment 5 Matthias Clasen 2016-04-16 02:23:41 UTC
I've pushed a fix for the GTK+ side of the problem. Now Super-x works under weston, at least.
Comment 6 Rui Matos 2016-04-18 13:28:18 UTC
(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 ***