fix: remove auto fill in scroller layout

This commit is contained in:
DreamMaoMao 2025-04-11 09:15:15 +08:00
parent 00137b5008
commit 3eb9db2f2c

View file

@ -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; target_geom.y = m->w.y + (m->w.height - target_geom.height) / 2;
if (need_scroller) { if (need_scroller) {
if (scroller_focus_center || m->prevsel == NULL || if (scroller_focus_center ||
((m->prevsel->scroller_proportion * max_client_width) + ((!m->prevsel || (m->prevsel->scroller_proportion * max_client_width) +
(root_client->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; target_geom.x = m->w.x + (m->w.width - target_geom.width) / 2;
} else { } else {
target_geom.x = target_geom.x =