window: only account for decoration borders when we're client decorated

This commit is contained in:
Cosimo Cecchi 2013-04-21 14:44:24 -04:00
parent 1507ba79ec
commit a25e0a97d5

View File

@ -8890,7 +8890,8 @@ gtk_window_draw (GtkWidget *widget,
gtk_widget_get_allocation (widget, &allocation);
get_decoration_borders (widget, &title_border, &inner_border, &outer_border);
if (priv->client_decorated)
get_decoration_borders (widget, &title_border, &inner_border, &outer_border);
if (!gtk_widget_get_app_paintable (widget) &&
gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)))