mirror of
https://github.com/swaywm/sway.git
synced 2025-01-28 22:05:12 +01:00
tree/view: set default min size to 1×1
It's not possible to have a surface with a smaller size.
This commit is contained in:
parent
cc34210769
commit
5f15c5e91d
1 changed files with 2 additions and 2 deletions
|
@ -173,9 +173,9 @@ void view_get_constraints(struct sway_view *view, double *min_width,
|
||||||
view->impl->get_constraints(view,
|
view->impl->get_constraints(view,
|
||||||
min_width, max_width, min_height, max_height);
|
min_width, max_width, min_height, max_height);
|
||||||
} else {
|
} else {
|
||||||
*min_width = DBL_MIN;
|
*min_width = 1;
|
||||||
*max_width = DBL_MAX;
|
*max_width = DBL_MAX;
|
||||||
*min_height = DBL_MIN;
|
*min_height = 1;
|
||||||
*max_height = DBL_MAX;
|
*max_height = DBL_MAX;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue