summaryrefslogtreecommitdiff
path: root/csd__disabled-by-default.patch
diff options
context:
space:
mode:
Diffstat (limited to 'csd__disabled-by-default.patch')
-rw-r--r--csd__disabled-by-default.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/csd__disabled-by-default.patch b/csd__disabled-by-default.patch
new file mode 100644
index 0000000..fc6b852
--- /dev/null
+++ b/csd__disabled-by-default.patch
@@ -0,0 +1,19 @@
+Index: b/gtk/gtkwindow.c
+===================================================================
+--- a/gtk/gtkwindow.c
++++ b/gtk/gtkwindow.c
+@@ -4164,6 +4164,14 @@ gtk_window_enable_csd (GtkWindow *window
+ }
+
+ priv->client_decorated = TRUE;
++#ifdef GDK_WINDOWING_X11
++ if (GDK_IS_X11_DISPLAY (gtk_widget_get_display (widget)) && g_getenv("GTK_CSD") == FALSE)
++ {
++ gtk_style_context_remove_class (gtk_widget_get_style_context (widget), GTK_STYLE_CLASS_CSD);
++ gtk_style_context_remove_class (gtk_widget_get_style_context (widget), "solid-csd");
++ priv->client_decorated = FALSE;
++ }
++#endif
+ }
+
+ static void
bgstack15