From 17b71621214cb694641807f66a6449651823b2b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 15 Jan 2024 14:39:59 +0100 Subject: [PATCH] closeDialog: Close existing dialogs on shutdown Otherwise mutter will request to hide the dialog when the meta context is destroyed, but at the JS context has already shut down, resulting in a crash. Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7328 Part-of: --- js/ui/closeDialog.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/closeDialog.js b/js/ui/closeDialog.js index d0169f2cf..b3b8d4cf3 100644 --- a/js/ui/closeDialog.js +++ b/js/ui/closeDialog.js @@ -166,6 +166,9 @@ export const CloseDialog = GObject.registerClass({ this._addWindowEffect(); this._initDialog(); + global.connectObject( + 'shutdown', () => this._onWait(), this._dialog); + this._dialog._dialog.scale_y = 0; this._dialog._dialog.set_pivot_point(0.5, 0.5);