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:
parent
4aecf4c973
commit
699e97559d
@ -1071,6 +1071,10 @@ var WindowManager = class {
|
|||||||
gesture.connect('activated', () => {
|
gesture.connect('activated', () => {
|
||||||
Main.keyboard.show(Main.layoutManager.bottomIndex);
|
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);
|
global.stage.add_action(gesture);
|
||||||
|
|
||||||
gesture = new EdgeDragAction.EdgeDragAction(St.Side.TOP, mode);
|
gesture = new EdgeDragAction.EdgeDragAction(St.Side.TOP, mode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user