diff --git a/js/ui/closeDialog.js b/js/ui/closeDialog.js index b943e85bf..e54ee48be 100644 --- a/js/ui/closeDialog.js +++ b/js/ui/closeDialog.js @@ -192,6 +192,7 @@ var CloseDialog = GObject.registerClass({ this._dialog = null; this._removeWindowEffect(); + dialog.makeInactive(); dialog._dialog.ease({ scale_y: 0, mode: Clutter.AnimationMode.LINEAR, diff --git a/js/ui/dialog.js b/js/ui/dialog.js index f81dbfb40..cd64b9e74 100644 --- a/js/ui/dialog.js +++ b/js/ui/dialog.js @@ -51,10 +51,16 @@ class Dialog extends St.Widget { y_align: St.Align.START }); } - _onDestroy() { + makeInactive() { if (this._eventId != 0) this._parentActor.disconnect(this._eventId); this._eventId = 0; + + this.buttonLayout.get_children().forEach(c => c.set_reactive(false)); + } + + _onDestroy() { + this.makeInactive(); } _modalEventHandler(actor, event) {