[gtk+] window: don't forget to fetch title border when not on CSD



commit 44ba055d03762ca67c8343f147c31cea50c00a0d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Apr 21 16:56:25 2013 -0400

    window: don't forget to fetch title border when not on CSD
    
    We still need to respect this border value even when we're not running
    under CSD, since we support setting a custom titlebar in all cases.
    
    The border/style magic in gtk_window_draw() really needs to be separated
    out into logical pieces soon, but for now let's keep a consistent
    behavior with the previous code.

 gtk/gtkwindow.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 10dfac9..48972d9 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -8892,6 +8892,8 @@ gtk_window_draw (GtkWidget *widget,
 
   if (priv->client_decorated)
     get_decoration_borders (widget, &title_border, &inner_border, &outer_border);
+  else if (priv->title_box != NULL)
+    get_decoration_borders (widget, &title_border, NULL, NULL);
 
   if (!gtk_widget_get_app_paintable (widget) &&
       gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)))


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