mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-20 01:40:18 -05:00
fix: only apply scroller overspread to head and tile client
This commit is contained in:
parent
6924ca8512
commit
444e2da7fb
2 changed files with 2 additions and 0 deletions
|
|
@ -374,6 +374,7 @@ void scroller(Monitor *m) {
|
|||
|
||||
bool need_apply_overspread =
|
||||
scroller_prefer_overspread && m->visible_scroll_tiling_clients > 1 &&
|
||||
(focus_client_index == 0 || focus_client_index == n - 1) &&
|
||||
tempClients[focus_client_index]->scroller_proportion < 1.0f;
|
||||
|
||||
if (need_apply_overspread) {
|
||||
|
|
|
|||
|
|
@ -358,6 +358,7 @@ void vertical_scroller(Monitor *m) {
|
|||
|
||||
bool need_apply_overspread =
|
||||
scroller_prefer_overspread && m->visible_scroll_tiling_clients > 1 &&
|
||||
(focus_client_index == 0 || focus_client_index == n - 1) &&
|
||||
tempClients[focus_client_index]->scroller_proportion < 1.0f;
|
||||
|
||||
if (need_apply_overspread) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue