[gnome-shell] windowManager: limit the "switch app" gesture to !overview.visible



commit 215eb5c65f885ff4317f4d5649f29c8bf33ecb7d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Sep 5 22:44:19 2014 +0200

    windowManager: limit the "switch app" gesture to !overview.visible
    
    This gesture only makes sense to be triggered outside the overview, when
    dealing with application windows themselves.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736110

 js/ui/windowManager.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 101f9a8..ac723a5 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -526,6 +526,11 @@ const AppSwitchAction = new Lang.Class({
     },
 
     vfunc_gesture_prepare : function(action, actor) {
+        if (Main.overview.visible) {
+            this.cancel();
+            return false;
+        }
+
         return this.get_n_current_points() <= 4;
     },
 


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