diff --git a/src/view.c b/src/view.c index b3a58bc9..8e969bf1 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 clampf_range(node->ratio, 0.1f, 0.9f); } static inline float window_node_get_gap(struct view *view)