[gtk+] csd: Fix an oversight for popups



commit a08ee01c6443a4890fc265e5976f91994379cc0b
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 23 10:39:32 2015 -0400

    csd: Fix an oversight for popups
    
    After the recent rework of client-side shadow code, menus,
    tooltips and similar popups were ending up with solid decorations.
    Fix this oversight.

 gtk/gtkwindow.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 05b11b5..22b0e54 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5806,7 +5806,8 @@ create_decoration (GtkWidget *widget)
   GtkWindow *window = GTK_WINDOW (widget);
   GtkWindowPrivate *priv = window->priv;
 
-  if (!gtk_window_supports_client_shadow (window))
+  priv->use_client_shadow = gtk_window_supports_client_shadow (window);
+  if (!priv->use_client_shadow)
     return;
 
   gtk_window_enable_csd (window);


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