windowManager: Disable bottom edge swipe gesture if OSK is enabled

It does not make sense then, plus it eats events close to the edge.
This commit is contained in:
Carlos Garnacho 2019-01-21 20:49:07 +01:00 committed by Florian Müllner
parent 4aecf4c973
commit 699e97559d

View File

@ -1071,6 +1071,10 @@ var WindowManager = 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);