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:
parent
5faef316b8
commit
215eb5c65f
@ -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;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user