Reset window transparency and shadow properties

... so that if a window is unrealized and realized again
that you end up in a stable form.
This commit is contained in:
Arjan Molenaar 2024-01-19 21:12:05 +01:00
parent 3e9f2aa4bb
commit f947aafc2e

View File

@ -2602,6 +2602,9 @@ 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_transparency = FALSE;
priv->use_client_shadow = FALSE;
}
static void