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:
Carlos Garnacho 2014-09-05 22:44:19 +02:00
parent 5faef316b8
commit 215eb5c65f

View File

@ -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;
},