[gtk/gtk-4-2: 71/91] x11: Fix shadows




commit 7ec50b1dd3f0777df88562439d9cd8f60b986d5d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 24 09:16:42 2021 -0400

    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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]