mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-25 06:59:50 -05:00
fix: remove auto fill in scroller layout
This commit is contained in:
parent
00137b5008
commit
3eb9db2f2c
1 changed files with 3 additions and 3 deletions
6
maomao.c
6
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;
|
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 =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue