1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 03:28:28 -04:00

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
2026-07-14 01:59:53 +07:00
committed by bbedward
parent 0d550662de
commit 417da7408d
@@ -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)