fix: remove auto fill in scroller layout
This commit is contained in:
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 =
|
||||||
|
|||||||
Reference in New Issue
Block a user