From 6ec330ccfa55509ffef8deb0eeb47ff8bf392605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 14 Mar 2019 10:46:21 +0100 Subject: [PATCH] keybindings: Stop keybinding if a touch happens while Super is pressed We use the combination of pressing Super and clicking+moving the mouse to drag windows around and we also support pressing Super and using the touchscreen to drag windows. Since we don't want to show the overview when the Super key was used to initiate a window drag, prevent showing the overview in case a TOUCH_BEGIN or TOUCH_END event happened during the key was pressed. Fixes https://gitlab.gnome.org/GNOME/mutter/issues/228 https://gitlab.gnome.org/GNOME/mutter/merge_requests/495 --- src/core/keybindings.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/keybindings.c b/src/core/keybindings.c index 478d4d875..a99899f80 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -2214,6 +2214,8 @@ meta_keybindings_process_event (MetaDisplay *display, { case CLUTTER_BUTTON_PRESS: case CLUTTER_BUTTON_RELEASE: + case CLUTTER_TOUCH_BEGIN: + case CLUTTER_TOUCH_END: keys->overlay_key_only_pressed = FALSE; return FALSE;