Blame SOURCES/0001-core-Hide-close-dialog-before-destroying.patch

94183f
From b5b252af2580c8dad8097037481963f93babfba7 Mon Sep 17 00:00:00 2001
94183f
From: Carlos Garnacho <carlosg@gnome.org>
94183f
Date: Wed, 6 Jun 2018 13:26:55 +0200
94183f
Subject: [PATCH] core: Hide close dialog before destroying
94183f
94183f
The MetaCloseDialog implementation object may stay artifically alive
94183f
for a longer period. This was usually fine till gnome-shell commit
94183f
b03bcc85aad, as the check_alive() timeout will keep running even
94183f
though the window went unmanaged/destroyed, leading to crashes.
94183f
94183f
In order to fix this, forcibly hide the dialog if it is visible and
94183f
the window is being unmanaged, so the timeout is stopped in time.
94183f
---
94183f
 src/core/delete.c | 3 +++
94183f
 1 file changed, 3 insertions(+)
94183f
94183f
diff --git a/src/core/delete.c b/src/core/delete.c
94183f
index af7cffed9..fd94dc6ca 100644
94183f
--- a/src/core/delete.c
94183f
+++ b/src/core/delete.c
94183f
@@ -115,5 +115,8 @@ meta_window_kill (MetaWindow *window)
94183f
 void
94183f
 meta_window_free_delete_dialog (MetaWindow *window)
94183f
 {
94183f
+  if (window->close_dialog &&
94183f
+      meta_close_dialog_is_visible (window->close_dialog))
94183f
+    meta_close_dialog_hide (window->close_dialog);
94183f
   g_clear_object (&window->close_dialog);
94183f
 }
94183f
-- 
94183f
2.25.1
94183f