workspace switcher: fix apps icon won't re focus (#2830)

* fix(workspace): update delegate data on window focus change

* fix(workspace): update delegate data handling specific for hyprland event

(cherry picked from commit 4fb6995796)
This commit is contained in:
arfan authored and bbedward committed 2026-07-13 16:18:43 -04:00
1 parent 0d550662de
commit 417da7408d
1 file changed
+8
@@ -2101,6 +2101,14 @@ Item {
delegateRoot.updateAllData();
}
}
Connections {
target: CompositorService.isHyprland ? Hyprland : null
enabled: CompositorService.isHyprland
function onRawEvent(event) {
if (event.name === "activewindow" || event.name === "activewindowv2")
delegateRoot.updateAllData();
}
}
Connections {
target: I3.workspaces
enabled: (CompositorService.isSway || CompositorService.isScroll || CompositorService.isMiracle)