mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
Don't do window transitions while the overlay is active. Part of #568983.
Previously we were only doing this check for switch-workspace, but it makes sense to do it for all transitions, since they won't be visible anyway, and they might interfere with the overlay's operations by moving windows around unexpectedly. svn path=/trunk/; revision=177
This commit is contained in:
parent
87a3088719
commit
4117739abb
1 changed files with 12 additions and 8 deletions
|
|
@ -79,9 +79,16 @@ WindowManager.prototype = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_shouldAnimate : function(actor) {
|
||||||
|
if (Main.overlayActive)
|
||||||
|
return false;
|
||||||
|
if (actor && (actor.get_window_type() != Meta.CompWindowType.NORMAL))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
|
||||||
_minimizeWindow : function(actor) {
|
_minimizeWindow : function(actor) {
|
||||||
if (actor.get_window_type() != Meta.CompWindowType.NORMAL) {
|
if (!this._shouldAnimate(actor)) {
|
||||||
this._shellwm.completed_minimize(actor);
|
this._shellwm.completed_minimize(actor);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -117,7 +124,7 @@ WindowManager.prototype = {
|
||||||
},
|
},
|
||||||
|
|
||||||
_maximizeWindow : function(actor, target_x, target_y, target_width, target_height) {
|
_maximizeWindow : function(actor, target_x, target_y, target_width, target_height) {
|
||||||
if (actor.get_window_type() != Meta.CompWindowType.NORMAL) {
|
if (!this._shouldAnimate(actor)) {
|
||||||
this._shellwm.completed_maximize(actor);
|
this._shellwm.completed_maximize(actor);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -164,9 +171,8 @@ WindowManager.prototype = {
|
||||||
_unmaximizeWindowDone : function(actor) {
|
_unmaximizeWindowDone : function(actor) {
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
_mapWindow : function(actor) {
|
_mapWindow : function(actor) {
|
||||||
if (actor.get_window_type() != Meta.CompWindowType.NORMAL) {
|
if (!this._shouldAnimate(actor)) {
|
||||||
this._shellwm.completed_map(actor);
|
this._shellwm.completed_map(actor);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -201,7 +207,7 @@ WindowManager.prototype = {
|
||||||
},
|
},
|
||||||
|
|
||||||
_destroyWindow : function(actor) {
|
_destroyWindow : function(actor) {
|
||||||
if (actor.get_window_type() != Meta.CompWindowType.NORMAL) {
|
if (!this._shouldAnimate(actor)) {
|
||||||
this._shellwm.completed_destroy(actor);
|
this._shellwm.completed_destroy(actor);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -232,10 +238,8 @@ WindowManager.prototype = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
_switchWorkspace : function(windows, from, to, direction) {
|
_switchWorkspace : function(windows, from, to, direction) {
|
||||||
// If the overlay is active, it will do the transition itself
|
if (!this._shouldAnimate()) {
|
||||||
if (Main.overlayActive) {
|
|
||||||
this._shellwm.completed_switch_workspace();
|
this._shellwm.completed_switch_workspace();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue