[gtk+] window: only account for decoration borders when we're client decorated
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] window: only account for decoration borders when we're client decorated
- Date: Sun, 21 Apr 2013 18:44:52 +0000 (UTC)
commit a25e0a97d5faed9ff2699fe6d15e0b26ba98074d
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Apr 21 14:44:24 2013 -0400
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 793a80e..10dfac9 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)))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]