From 5f15c5e91defe8afc6c0f5105b7a51625676a685 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 24 Jun 2024 09:29:31 +0200 Subject: [PATCH] =?UTF-8?q?tree/view:=20set=20default=20min=20size=20to=20?= =?UTF-8?q?1=C3=971?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's not possible to have a surface with a smaller size. --- sway/tree/view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sway/tree/view.c b/sway/tree/view.c index 1c1c8ee8a..884beec84 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; } }