[gnome-shell/wip/carlosg/osk-emoji-and-keypad: 3/11] windowManager: Disable bottom edge swipe gesture if OSK is enabled



commit a21f4c397610032f15d2f64550b75d68d92ca8e8
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jan 21 20:49:07 2019 +0100

    windowManager: Disable bottom edge swipe gesture if OSK is enabled
    
    It does not make sense then, plus it eats events close to the edge.

 js/ui/windowManager.js | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index fedee72d5..ccb5eff8b 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -1027,6 +1027,10 @@ var WindowManager = new Lang.Class({
         gesture.connect('activated', () => {
             Main.keyboard.show(Main.layoutManager.bottomIndex);
         });
+        Main.layoutManager.connect('keyboard-visible-changed', (manager, visible) => {
+            gesture.cancel();
+            gesture.set_enabled(!visible);
+        });
         global.stage.add_action(gesture);
 
         gesture = new EdgeDragAction.EdgeDragAction(St.Side.TOP, mode);


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