From 628d5406d72cf29d678f20a56a51e1871a1af221 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 24 Apr 2021 09:16:42 -0400 Subject: [PATCH] x11: Fix shadows Commit a2cd21cab663a003 changed a condition and inadvertedly broke client-side shadows on X11. Change this back. Fixes: #3896 --- gtk/gtkwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index abc6aa1582..a21e7205c8 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -4005,7 +4005,7 @@ get_shadow_width (GtkWindow *window, if (!priv->decorated) goto out; - if (!priv->client_decorated || + if (!priv->client_decorated && !(gtk_window_should_use_csd (window) && gtk_window_supports_client_shadow (window))) goto out;