From 3eb9db2f2c4ec2cd4defa1c37bed4aaab54c5408 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Fri, 11 Apr 2025 09:15:15 +0800 Subject: [PATCH] fix: remove auto fill in scroller layout --- maomao.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maomao.c b/maomao.c index c97cfa7..5584395 100644 --- a/maomao.c +++ b/maomao.c @@ -6018,10 +6018,10 @@ void scroller(Monitor *m, unsigned int gappo, unsigned int gappi) { target_geom.y = m->w.y + (m->w.height - target_geom.height) / 2; if (need_scroller) { - if (scroller_focus_center || m->prevsel == NULL || - ((m->prevsel->scroller_proportion * max_client_width) + + if (scroller_focus_center || + ((!m->prevsel || (m->prevsel->scroller_proportion * max_client_width) + (root_client->scroller_proportion * max_client_width) > - m->w.width - 2 * scroller_structs - gappih && scroller_prefer_center)) { + m->w.width - 2 * scroller_structs - gappih) && scroller_prefer_center)) { target_geom.x = m->w.x + (m->w.width - target_geom.width) / 2; } else { target_geom.x =