wip: cross fade the window_group and window clones going in/out of the overview

https://bugzilla.gnome.org/show_bug.cgi?id=653868
This commit is contained in:
Rui Matos
2011-07-04 18:35:01 +01:00
parent a50c30a4fd
commit 1625591598
2 changed files with 43 additions and 14 deletions

View File

@ -535,7 +535,15 @@ Overview.prototype = {
//
// If we switched to displaying the actors in the Overview rather than
// clones of them, this would obviously no longer be necessary.
global.window_group.hide();
global.window_group.raise(global.overlay_group);
Tweener.addTween(global.window_group,
{ opacity: 0,
time: ANIMATION_TIME,
transition: 'easeInOutQuad',
onComplete: function() { global.window_group.hide(); }
});
this._group.show();
this._background.show();
@ -664,6 +672,14 @@ Overview.prototype = {
this.animationInProgress = true;
this._hideInProgress = true;
global.window_group.raise(global.overlay_group);
global.window_group.show();
Tweener.addTween(global.window_group,
{ opacity: 255,
time: ANIMATION_TIME,
transition: 'easeInOutQuad'
});
if (!this.workspaces.getActiveWorkspace().hasMaximizedWindows()) {
this._desktopFade.opacity = 0;
this._desktopFade.show();
@ -704,8 +720,6 @@ Overview.prototype = {
},
_hideDone: function() {
global.window_group.show();
this.workspaces.destroy();
this.workspaces = null;