Reorganize overlay hiding/showing code

Rather than having main.js manage this, put it into overlay.js, and
have the overlay object emit signals that other code can watch to do
things when the overlay is showing/shown/hiding/hidden.
This commit is contained in:
Dan Winship
2009-05-07 09:47:48 -04:00
parent 17fb280884
commit 062e1aa78b
5 changed files with 29 additions and 45 deletions

View File

@ -86,7 +86,7 @@ WindowManager.prototype = {
},
_shouldAnimate : function(actor) {
if (Main.overlayActive)
if (Main.overlay.visible)
return false;
if (actor && (actor.get_window_type() != Meta.CompWindowType.NORMAL))
return false;