diff --git a/src/view.c b/src/view.c index b3a58bc9..b352a92b 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 in_range_ii(node->ratio, 0.1f, 0.9f) ? node->ratio : g_space_manager.split_ratio; + return (node->ratio <= 0.0f) ? g_space_manager.split_ratio : clampf_range(node->ratio, 0.1f, 0.9f); } static inline float window_node_get_gap(struct view *view)