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.
This commit is contained in:
Cosimo Cecchi
2013-04-21 16:56:25 -04:00
parent 32abb29b32
commit 44ba055d03

View File

@@ -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)))