summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-04-24 09:16:42 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-04-24 09:19:18 -0400
commit628d5406d72cf29d678f20a56a51e1871a1af221 (patch)
tree2ec35bf72309a9054e5303b45695ad8c3ca3ed70
parent5d563fcde6b3d4528fc03111835a6bdac60ec831 (diff)
downloadgtk+-628d5406d72cf29d678f20a56a51e1871a1af221.tar.gz
x11: Fix shadows
Commit a2cd21cab663a003 changed a condition and inadvertedly broke client-side shadows on X11. Change this back. Fixes: #3896
-rw-r--r--gtk/gtkwindow.c2
1 files changed, 1 insertions, 1 deletions
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;