window: Fix child wfh size request

We need to subtract border_width from the size we're passing to the
children hfw functions as those are added by ourselves.

Fixes the window-border-width.ui reftest.
This commit is contained in:
Benjamin Otte 2013-09-17 15:52:27 +02:00
parent 6aa56979dc
commit 8c0516a5f1

View File

@ -7792,6 +7792,8 @@ gtk_window_get_preferred_width_for_height (GtkWidget *widget,
border_width = gtk_container_get_border_width (GTK_CONTAINER (window));
height -= 2 * border_width;
if (priv->decorated &&
!priv->fullscreen)
{
@ -7896,6 +7898,8 @@ gtk_window_get_preferred_height_for_width (GtkWidget *widget,
border_width = gtk_container_get_border_width (GTK_CONTAINER (window));
width -= 2 * border_width;
if (priv->decorated &&
!priv->fullscreen)
{