window: Don't let solid-csd linger

Just from reading the code, it seems that we
should unset .csd and .solid-csd at the same
time, since the are mutually exclusive and
we unset them here so realize() can set one
of them again.
This commit is contained in:
Matthias Clasen 2021-04-24 11:29:19 -04:00
parent 1c1c030b8e
commit aa569acaa1

View File

@ -3038,8 +3038,10 @@ gtk_window_set_titlebar (GtkWindow *window,
if (titlebar == NULL)
{
/* these are updated in realize() */
priv->client_decorated = FALSE;
gtk_widget_remove_css_class (widget, "csd");
gtk_widget_remove_css_class (widget, "solid-csd");
goto out;
}