[gnome-shell/wip/carlosg/osk-gestures-capture: 2/2] keyboard: Set up OSK edge drag gesture on capture phase




commit 41d9f3f5a54de8ce099474d942788d9895595276
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue May 24 22:22:05 2022 +0200

    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

 js/ui/keyboard.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 282f9ac06d..82692dc94b 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -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();


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