From a25e0a97d5faed9ff2699fe6d15e0b26ba98074d Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sun, 21 Apr 2013 14:44:24 -0400 Subject: [PATCH] window: only account for decoration borders when we're client decorated --- gtk/gtkwindow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 793a80e312..10dfac91e4 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -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)))