Fixed scroll not resetting to 0 when manually switching ws

This commit is contained in:
Erik Reider 2024-01-21 19:54:24 +01:00
parent 0b86078eea
commit 6552778dd6

View file

@ -582,6 +582,7 @@ bool workspace_switch(struct sway_workspace *workspace) {
sway_log(SWAY_DEBUG, "Switching to workspace %p:%s", sway_log(SWAY_DEBUG, "Switching to workspace %p:%s",
workspace, workspace->name); workspace, workspace->name);
workspace->output->workspace_scroll_percent = 0.0f;
struct sway_node *next = seat_get_focus_inactive(seat, &workspace->node); struct sway_node *next = seat_get_focus_inactive(seat, &workspace->node);
if (next == NULL) { if (next == NULL) {
next = &workspace->node; next = &workspace->node;