[gtk+] Fix undecorated windows



commit 9ed2c8a71988079f94a204d2e7d19d3bcad5c933
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Mar 21 15:39:46 2014 -0400

    Fix undecorated windows
    
    Setting windows undecorated was broken by some of the recent
    shadow width changes. We need to ensure that shadow width is
    zero for undecorated windows, then things work again.

 gtk/gtkwindow.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 3dc1172..80bab40 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6562,7 +6562,8 @@ get_shadow_width (GtkWidget *widget,
 
   *shadow_width = border;
 
-  if (!priv->client_decorated)
+  if (!priv->decorated ||
+      !priv->client_decorated)
     return;
 
   if (priv->maximized ||


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