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:
parent
bad8dbc2d2
commit
1e366aa56e
@ -376,7 +376,15 @@ AltTabPopup.prototype = {
|
|||||||
this.destroy();
|
this.destroy();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_popModal: function() {
|
||||||
|
if (this._haveModal) {
|
||||||
|
Main.popModal(this.actor);
|
||||||
|
this._haveModal = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
destroy : function() {
|
destroy : function() {
|
||||||
|
this._popModal();
|
||||||
if (this.actor.visible) {
|
if (this.actor.visible) {
|
||||||
Tweener.addTween(this.actor,
|
Tweener.addTween(this.actor,
|
||||||
{ opacity: 0,
|
{ opacity: 0,
|
||||||
@ -392,8 +400,7 @@ AltTabPopup.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onDestroy : function() {
|
_onDestroy : function() {
|
||||||
if (this._haveModal)
|
this._popModal();
|
||||||
Main.popModal(this.actor);
|
|
||||||
|
|
||||||
if (this._thumbnails)
|
if (this._thumbnails)
|
||||||
this._destroyThumbnails();
|
this._destroyThumbnails();
|
||||||
|
@ -281,6 +281,7 @@ CtrlAltTabPopup.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onDestroy : function() {
|
_onDestroy : function() {
|
||||||
|
this._popModal();
|
||||||
if (this._keyPressEventId)
|
if (this._keyPressEventId)
|
||||||
this.actor.disconnect(this._keyPressEventId);
|
this.actor.disconnect(this._keyPressEventId);
|
||||||
if (this._keyReleaseEventId)
|
if (this._keyReleaseEventId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user