x11: Fix shadows

Commit a2cd21cab6 changed a condition and inadvertedly
broke client-side shadows on X11. Change this back.

Fixes: #3896
This commit is contained in:
Matthias Clasen 2021-04-24 09:16:42 -04:00
parent 5d563fcde6
commit 628d5406d7

View File

@ -4005,7 +4005,7 @@ get_shadow_width (GtkWindow *window,
if (!priv->decorated) if (!priv->decorated)
goto out; goto out;
if (!priv->client_decorated || if (!priv->client_decorated &&
!(gtk_window_should_use_csd (window) && !(gtk_window_should_use_csd (window) &&
gtk_window_supports_client_shadow (window))) gtk_window_supports_client_shadow (window)))
goto out; goto out;