altTab: popModal before fading out

This lets the user start typing in the newly-selected window right
away, without any characters possibly getting eaten during the
animation.

https://bugzilla.gnome.org/show_bug.cgi?id=644857
This commit is contained in:
Dan Winship 2011-03-15 16:12:40 -04:00
parent bad8dbc2d2
commit 1e366aa56e
2 changed files with 10 additions and 2 deletions

View File

@ -376,7 +376,15 @@ AltTabPopup.prototype = {
this.destroy();
},
_popModal: function() {
if (this._haveModal) {
Main.popModal(this.actor);
this._haveModal = false;
}
},
destroy : function() {
this._popModal();
if (this.actor.visible) {
Tweener.addTween(this.actor,
{ opacity: 0,
@ -392,8 +400,7 @@ AltTabPopup.prototype = {
},
_onDestroy : function() {
if (this._haveModal)
Main.popModal(this.actor);
this._popModal();
if (this._thumbnails)
this._destroyThumbnails();

View File

@ -281,6 +281,7 @@ CtrlAltTabPopup.prototype = {
},
_onDestroy : function() {
this._popModal();
if (this._keyPressEventId)
this.actor.disconnect(this._keyPressEventId);
if (this._keyReleaseEventId)