keyboard: Set up OSK edge drag gesture on capture phase

This makes the gesture able to get the events that would otherwise
be meant for the background actor or client window.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5335
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2304>
This commit is contained in:
Carlos Garnacho 2022-05-24 22:22:05 +02:00 committed by Marge Bot
parent 1fa5c63307
commit 9a0935305d

View File

@ -1203,7 +1203,7 @@ var KeyboardManager = class KeyBoardManager {
if (this._keyboard)
this._keyboard.gestureCancel();
});
global.stage.add_action(bottomDragAction);
global.stage.add_action_full('osk', Clutter.EventPhase.CAPTURE, bottomDragAction);
this._bottomDragAction = bottomDragAction;
this._syncEnabled();