diff options
author | 2024-06-24 09:29:31 +0200 | |
---|---|---|
committer | 2024-06-24 09:29:31 +0200 | |
commit | 813bdaddc519d12690a3ddb09ec3345da33490ed (patch) | |
tree | 40807703d42193934d7ae8b03e85a164af54f05f | |
parent | Set color transform when calling wlr_scene_output_build_state() (diff) | |
download | sway-813bdaddc519d12690a3ddb09ec3345da33490ed.tar.gz sway-813bdaddc519d12690a3ddb09ec3345da33490ed.tar.zst sway-813bdaddc519d12690a3ddb09ec3345da33490ed.zip |
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, | |||
173 | view->impl->get_constraints(view, | 173 | view->impl->get_constraints(view, |
174 | min_width, max_width, min_height, max_height); | 174 | min_width, max_width, min_height, max_height); |
175 | } else { | 175 | } else { |
176 | *min_width = DBL_MIN; | 176 | *min_width = 1; |
177 | *max_width = DBL_MAX; | 177 | *max_width = DBL_MAX; |
178 | *min_height = DBL_MIN; | 178 | *min_height = 1; |
179 | *max_height = DBL_MAX; | 179 | *max_height = DBL_MAX; |
180 | } | 180 | } |
181 | } | 181 | } |