[gnome-shell/wip/carlosg/sanitize-gestures: 2/2] windowManager: Set up unfullscreen/app-switch gestures in the capture phase




commit 07a62b01b5184788f2e54927fd80e4d92d70f837
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Sep 27 22:45:47 2021 +0200

    windowManager: Set up unfullscreen/app-switch gestures in the capture phase
    
    Use the new API to specify the gesture phase.

 js/ui/windowManager.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index caaecec410..72cadd9ac0 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -936,7 +936,7 @@ var WindowManager = class {
 
         let appSwitchAction = new AppSwitchAction();
         appSwitchAction.connect('activated', this._switchApp.bind(this));
-        global.stage.add_action(appSwitchAction);
+        global.stage.add_action_full('app-switch', Clutter.EventPhase.CAPTURE, appSwitchAction);
 
         let mode = Shell.ActionMode.ALL & ~Shell.ActionMode.LOCK_SCREEN;
         let topDragAction = new EdgeDragAction.EdgeDragAction(St.Side.TOP, mode);
@@ -954,7 +954,7 @@ var WindowManager = class {
         global.display.connect('notify::focus-window', updateUnfullscreenGesture);
         global.display.connect('in-fullscreen-changed', updateUnfullscreenGesture);
 
-        global.stage.add_action(topDragAction);
+        global.stage.add_action_full('unfullscreen', Clutter.EventPhase.CAPTURE, topDragAction);
 
         this._workspaceAnimation =
             new WorkspaceAnimation.WorkspaceAnimationController();


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