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
This commit is contained in:
@@ -526,6 +526,11 @@ const AppSwitchAction = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
vfunc_gesture_prepare : function(action, actor) {
|
vfunc_gesture_prepare : function(action, actor) {
|
||||||
|
if (Main.overview.visible) {
|
||||||
|
this.cancel();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return this.get_n_current_points() <= 4;
|
return this.get_n_current_points() <= 4;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user