diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2024-06-24 09:29:31 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2024-06-24 09:29:31 +0200 |
| commit | a1aaaf1feaf22bbdd942b8fb708766a5065bd7e2 (patch) | |
| tree | 40807703d42193934d7ae8b03e85a164af54f05f | |
| parent | 426b0adfcbef73dda76bf2005ff7f9c2b51ab0ea (diff) | |
tree/view: set default min size to 1×1
It's not possible to have a surface with a smaller size.
| -rw-r--r-- | sway/tree/view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 1c1c8ee8..884beec8 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -173,9 +173,9 @@ void view_get_constraints(struct sway_view *view, double *min_width, view->impl->get_constraints(view, min_width, max_width, min_height, max_height); } else { - *min_width = DBL_MIN; + *min_width = 1; *max_width = DBL_MAX; - *min_height = DBL_MIN; + *min_height = 1; *max_height = DBL_MAX; } } |
