From 44ba055d03762ca67c8343f147c31cea50c00a0d Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sun, 21 Apr 2013 16:56:25 -0400 Subject: [PATCH] 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 10dfac91e4..48972d9436 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)))