[gtk/matthiasc/for-master] window: Hide windows on destroy
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk/matthiasc/for-master] window: Hide windows on destroy
- Date: Tue, 12 May 2020 15:12:20 +0000 (UTC)
commit ffcffcd77326b0357e37a231404b4acd5d2ab238
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue May 12 11:10:36 2020 -0400
    window: Hide windows on destroy
    
    I thought I could get away with just unrealizing the
    window, but it turns out that gtk_window_hide() is the
    place where we remove grabs when a modal dialog goes
    away, so we ended up with stuck grabs.
 gtk/gtkwindow.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 8f1e37f727..5a755ef450 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7498,6 +7498,7 @@ gtk_window_destroy (GtkWindow *window)
         g_object_unref (item);
     }
 
+  gtk_window_hide (GTK_WIDGET (window));
   gtk_widget_unrealize (GTK_WIDGET (window));
 
   g_object_unref (window);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]