From 9467243ac39765ff8b07ef5db5e93e809361296d Mon Sep 17 00:00:00 2001 From: Arjan Molenaar Date: Thu, 25 Jan 2024 13:11:13 +0100 Subject: [PATCH] Properly unset the use_client_shadow flag --- gtk/gtkwindow.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 01c970bd92..2c44ab4963 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -2601,8 +2601,6 @@ gtk_window_transient_parent_unrealized (GtkWidget *parent, GtkWindowPrivate *priv = gtk_window_get_instance_private (GTK_WINDOW (window)); if (_gtk_widget_get_realized (window)) gdk_toplevel_set_transient_for (GDK_TOPLEVEL (priv->surface), NULL); - - priv->use_client_shadow = FALSE; } static void @@ -4316,6 +4314,8 @@ gtk_window_realize (GtkWidget *widget) update_window_actions (window); } + else + priv->use_client_shadow = FALSE; } surface = gdk_surface_new_toplevel (gtk_widget_get_display (widget)); @@ -4455,6 +4455,8 @@ gtk_window_unrealize (GtkWidget *widget) gdk_surface_set_widget (surface, NULL); g_clear_pointer (&priv->surface, gdk_surface_destroy); + + priv->use_client_shadow = FALSE; } static void