From 2fe07c9068b1ad399c9162d2199802f200b03f64 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 17 Mar 2013 19:00:13 -0400 Subject: [PATCH] Fix double accounting of border width For csd, we were subtracting the border width one too many times from the child height, causing clipped off content e.g. in the 'Properties' window in testgtk. --- gtk/gtkwindow.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 59598b5a62..0595114ede 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -6073,7 +6073,9 @@ _gtk_window_set_allocation (GtkWindow *window, title_border.top + title_border.bottom; child_allocation.width -= window_border.left + window_border.right; - child_allocation.height -= child_allocation.y + window_border.bottom; + child_allocation.height -= window_border.top + window_border.bottom + + title_border.top + title_border.bottom + + title_height; } if (gtk_widget_get_realized (widget))