Blame env-builder-data/build/script/packet/gtk-3.22.12.files/0001-gtkwindow-Don-t-force-enable-CSD-under-Windows.patch

564d17
From 07bbd9b206f9a8712e1d77a6f86e260023738247 Mon Sep 17 00:00:00 2001
564d17
From: Christoph Reiter <reiter.christoph@gmail.com></reiter.christoph@gmail.com>
564d17
Date: Thu, 28 Sep 2017 12:02:03 +0200
564d17
Subject: [PATCH] gtkwindow: Don't force enable CSD under Windows
564d17
564d17
CSD look a bit out of place under Windows, especially
564d17
when the application doesn't use the headerbar and the CSD
564d17
doesn't add any value.
564d17
564d17
Instead let the application decide, like under X11.
564d17
It can still be force enabled through GTK_CSD=1
564d17
---
564d17
 gtk/gtkwindow.c | 6 ------
564d17
 1 file changed, 6 deletions(-)
564d17
564d17
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
564d17
index 9f1e52ab04..7c6d874afb 100644
564d17
--- a/gtk/gtkwindow.c
564d17
+++ b/gtk/gtkwindow.c
564d17
@@ -6107,12 +6107,6 @@ gtk_window_should_use_csd (GtkWindow *window)
564d17
     return TRUE;
564d17
 #endif
564d17
 
564d17
-#ifdef GDK_WINDOWING_WIN32
564d17
-  if (g_strcmp0 (csd_env, "0") != 0 &&
564d17
-      GDK_IS_WIN32_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window))))
564d17
-    return TRUE;
564d17
-#endif
564d17
-
564d17
   return (g_strcmp0 (csd_env, "1") == 0);
564d17
 }
564d17
 
564d17
-- 
564d17
2.14.1
564d17