From f313faf7e5059ee6a41651f0f64ea072fa234e8e Mon Sep 17 00:00:00 2001 From: yuzujr <15568103056@163.com> Date: Wed, 18 Feb 2026 15:55:54 +0800 Subject: [PATCH] fix(active-window): not updating when window title change on Sway/Scroll --- Services/Compositor/SwayService.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Services/Compositor/SwayService.qml b/Services/Compositor/SwayService.qml index 25af31c5b..439065222 100644 --- a/Services/Compositor/SwayService.qml +++ b/Services/Compositor/SwayService.qml @@ -496,6 +496,17 @@ Item { } } + // browser tab switches change the title without changing focus. + // This backend mostly refreshes on focus/raw IPC events, so title-only updates + // can be missed on Sway/Scroll unless we listen to titleChanged directly. + Connections { + target: ToplevelManager ? ToplevelManager.activeToplevel : null + enabled: initialized + function onTitleChanged() { + updateTimer.restart(); + } + } + Connections { target: I3 enabled: initialized