From d4998baa09a11338c6b9a0dea6616e9456cedd19 Mon Sep 17 00:00:00 2001 From: Antoine Charpentier Date: Thu, 15 Sep 2022 11:01:07 +0200 Subject: [PATCH] Additional check for insertion --- assets/.DS_Store | Bin 0 -> 6148 bytes assets/icon/.DS_Store | Bin 0 -> 6148 bytes src/view.c | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 assets/.DS_Store create mode 100644 assets/icon/.DS_Store diff --git a/assets/.DS_Store b/assets/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..30f927a3a85ce1d77956dfd55b6551c55ed7d9bc GIT binary patch literal 6148 zcmeHKJx;?=47N)IK`b2^-^fT0fE225f-Z;&(xOtSX(}Z4TmUxCz(slhPSOJ~@%h;b z2`OSj2<*!5d-2b+@+FFEBI5DGY(z99q7*7PIK;9;#4p;Dfmy`K@r+x#U(QF9X;rR! z(Qf#S49K(Fr-E*1gLTxM7+YC5qE zA8eJ`CKQgxs&`VhW literal 0 HcmV?d00001 diff --git a/assets/icon/.DS_Store b/assets/icon/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..da72d2fd7fc3cb24b20715f2092c5bf08d06a9f1 GIT binary patch literal 6148 zcmeHKOG?B*5Um~u47i!4%f3R~3vq}i$OU8^P+>x5Be-zU7tlL+2~RNh(4+WXS4EN- zU5ZE*bieBQbR`ecof46-zTcK2D-kI$h=IzC&^+r}STLP|dt7(zUTw|6e19GI>nNiqNYo*<|A0;zIh3`I`)q_TtcPjvoqif zj2Sr6<%;+JB|e$iCV!mbD`&tN_-71+W!=SIFEH={{g*t# literal 0 HcmV?d00001 diff --git a/src/view.c b/src/view.c index 8e969bf1..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 clampf_range(node->ratio, 0.1f, 0.9f); + 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)