From 70153217727fbd847b1d4c1c8b4d5b66acacaa17 Mon Sep 17 00:00:00 2001 From: Sighthesia Date: Sun, 19 Oct 2025 11:28:42 +0800 Subject: [PATCH] ActiveWindow: reset scrolling when focused window changes --- Modules/Bar/Widgets/ActiveWindow.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Modules/Bar/Widgets/ActiveWindow.qml b/Modules/Bar/Widgets/ActiveWindow.qml index 04e9a0ab..b951e958 100644 --- a/Modules/Bar/Widgets/ActiveWindow.qml +++ b/Modules/Bar/Widgets/ActiveWindow.qml @@ -307,6 +307,14 @@ Item { font.weight: Style.fontWeightMedium verticalAlignment: Text.AlignVCenter color: Color.mOnSurface + onTextChanged: { + if (root.scrollingMode === "always") { + titleContainer.isScrolling = false + titleContainer.isResetting = false + scrollContainer.scrollX = 0 + scrollStartTimer.restart() + } + } } // Second copy for seamless scrolling