diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index c8996d811..32b8c0f6c 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -1296,7 +1296,10 @@ const WindowManager = new Lang.Class({ transition: 'easeOutQuad', onComplete: this._sizeChangeWindowDone, onCompleteScope: this, - onCompleteParams: [shellwm, actor] + onCompleteParams: [shellwm, actor], + onOverwrite: this._sizeChangeWindowOverwritten, + onOverwriteScope: this, + onOverwriteParams: [shellwm, actor] }); // Now unfreeze actor updates, to get it to the new size. @@ -1321,6 +1324,16 @@ const WindowManager = new Lang.Class({ } }, + _sizeChangeWindowOverwritten: function(shellwm, actor) { + if (this._removeEffect(this._resizing, actor)) { + let actorClone = actor.__fullscreenClone; + if (actorClone) { + actorClone.destroy(); + delete actor.__fullscreenClone; + } + } + }, + _hasAttachedDialogs: function(window, ignoreWindow) { var count = 0; window.foreach_transient(function(win) {