fix(active-window): not updating when window title change on Sway/Scroll

This commit is contained in:
yuzujr
2026-02-18 15:55:54 +08:00
parent e0293e2666
commit f313faf7e5
+11
View File
@@ -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