[gtk/gtk-4-2: 73/91] window: Don't let solid-csd linger
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-4-2: 73/91] window: Don't let solid-csd linger
- Date: Tue, 4 May 2021 02:05:42 +0000 (UTC)
commit 9145365331883c2ef748a4e1ad46357b33b9202f
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Apr 24 11:29:19 2021 -0400
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.
gtk/gtkwindow.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 88a4e9721a..d7048ed412 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]