[mutter] keybindings: Stop keybinding if a touch happens while Super is pressed



commit 6ec330ccfa55509ffef8deb0eeb47ff8bf392605
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Thu Mar 14 10:46:21 2019 +0100

    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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]