diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 53f74e8..37d7aa8 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -5771,30 +5771,12 @@ gtk_window_should_use_csd (GtkWindow *window) GtkWindowPrivate *priv = window->priv; const gchar *csd_env; - if (priv->csd_requested) - return TRUE; - if (!priv->decorated) return FALSE; if (priv->type == GTK_WINDOW_POPUP) return FALSE; -#ifdef GDK_WINDOWING_BROADWAY - if (GDK_IS_BROADWAY_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window)))) - return TRUE; -#endif - -#ifdef GDK_WINDOWING_WAYLAND - if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window)))) - return TRUE; -#endif - -#ifdef GDK_WINDOWING_MIR - if (GDK_IS_MIR_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window)))) - return TRUE; -#endif - csd_env = g_getenv ("GTK_CSD"); return (g_strcmp0 (csd_env, "1") == 0);