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:
parent
6aa56979dc
commit
8c0516a5f1
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user