GNOME Bugzilla – Bug 786480
Button grabs unintendedly cause shortcut inhibition dialog
Last modified: 2017-08-18 18:45:15 UTC
On wayland, the shortcut inhibition will kick in whenever a client triggers keyboard grabs alone. However this is triggered too easily by GtkButton, since it tries to grab the keyboard in order to ensure it receives the key release event. I'm attaching/pushing a patch removing the GDK grab, since it shouldn't be necessary at least for GTK+ situations, since comboboxes and menubuttons wait till key release before triggering the grab.
The following fix has been pushed: 2218b5a gtkbutton: Avoid keyboard grabs
Created attachment 357921 [details] [review] gtkbutton: Avoid keyboard grabs Seems to be there for the sole purpose of ensuring the button shall receive the key release on keyboard-triggered activation. For the cases where this makes sense (eg. comboboxes, menubuttons, ...) gtk+ already does ensure the menu is popup after key release. This makes the grab pretty useless, and there's many other cases where it doesn't make sense (eg. button being activated programmatically from an event handler in another widget). Fixes button activation unintendedly triggering shortcut inhibition on wayland.