From 6321bbb77330120432b7cbc80259883d8d057d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 25 Sep 2017 15:26:14 +0200 Subject: [PATCH] windowManager: Disable OSK gesture on lock screen On the screen shield, the only possible interaction is lifting the shield. The on-screen-keyboard is not useful for that, and the drag gesture from the bottom may in fact conflict with dragging up the shield, so disable it. https://bugzilla.gnome.org/show_bug.cgi?id=788339 --- js/ui/windowManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index dbc2acf3d..a59b3fd92 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -985,7 +985,8 @@ var WindowManager = new Lang.Class({ gesture.connect('activated', Lang.bind(this, this._switchApp)); global.stage.add_action(gesture); - gesture = new EdgeDragAction.EdgeDragAction(St.Side.BOTTOM, Shell.ActionMode.ALL); + let mode = Shell.ActionMode.ALL & ~Shell.ActionMode.LOCK_SCREEN; + gesture = new EdgeDragAction.EdgeDragAction(St.Side.BOTTOM, mode); gesture.connect('activated', Lang.bind(this, function() { Main.keyboard.show(Main.layoutManager.bottomIndex); }));