From 6c8f9397e0eb7c72f02f599331f269b66a32db08 Mon Sep 17 00:00:00 2001 From: Antoine Charpentier Date: Thu, 15 Sep 2022 11:01:07 +0200 Subject: [PATCH] additional check --- src/view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view.c b/src/view.c index 8e969bf1..b3a58bc9 100644 --- a/src/view.c +++ b/src/view.c @@ -126,7 +126,7 @@ static inline enum window_node_split window_node_get_split(struct window_node *n static inline float window_node_get_ratio(struct window_node *node) { - return clampf_range(node->ratio, 0.1f, 0.9f); + return in_range_ii(node->ratio, 0.1f, 0.9f) ? node->ratio : g_space_manager.split_ratio; } static inline float window_node_get_gap(struct view *view)