From be6ed1764fd5681ed3165dcdb1df3b29062ed045 Mon Sep 17 00:00:00 2001 From: rasmusq Date: Sun, 16 Nov 2025 02:00:42 +0100 Subject: [PATCH] fix do not scroll to index zero when no window in row is focused --- src/layout/horizontal.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/layout/horizontal.h b/src/layout/horizontal.h index 21fcbb3..6adfd02 100644 --- a/src/layout/horizontal.h +++ b/src/layout/horizontal.h @@ -481,8 +481,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 @@ -1011,4 +1010,4 @@ monocle(Monitor *m) { } if ((c = focustop(m))) wlr_scene_node_raise_to_top(&c->scene->node); -} \ No newline at end of file +}