mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
fix do not scroll to index zero when no window in row is focused
This commit is contained in:
parent
f7d4420685
commit
dd6223d383
1 changed files with 2 additions and 3 deletions
|
|
@ -480,8 +480,7 @@ void dual_scroller(Monitor *m) {
|
|||
|
||||
// If no focused client in this row, keep current scroll position
|
||||
if (!root_client && n_row > 0) {
|
||||
root_client = row_clients[0];
|
||||
focus_index = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if scrolling is needed
|
||||
|
|
@ -1010,4 +1009,4 @@ monocle(Monitor *m) {
|
|||
}
|
||||
if ((c = focustop(m)))
|
||||
wlr_scene_node_raise_to_top(&c->scene->node);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue