From 6552778dd6a82809650ace37c6d8e85df7106a31 Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Sun, 21 Jan 2024 19:54:24 +0100 Subject: [PATCH] Fixed scroll not resetting to 0 when manually switching ws --- sway/tree/workspace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c index b2305341..1b3d4dfb 100644 --- a/sway/tree/workspace.c +++ b/sway/tree/workspace.c @@ -582,6 +582,7 @@ bool workspace_switch(struct sway_workspace *workspace) { sway_log(SWAY_DEBUG, "Switching to workspace %p:%s", workspace, workspace->name); + workspace->output->workspace_scroll_percent = 0.0f; struct sway_node *next = seat_get_focus_inactive(seat, &workspace->node); if (next == NULL) { next = &workspace->node;