From dd6223d38332acc29c6c6147f243bfce30363fbf 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 e7ca9d6..6477186 100644 --- a/src/layout/horizontal.h +++ b/src/layout/horizontal.h @@ -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); -} \ No newline at end of file +}