From 4fb6995796c65fb26587a916501be8c4d00c044b Mon Sep 17 00:00:00 2001 From: arfan Date: Tue, 14 Jul 2026 01:59:53 +0700 Subject: [PATCH] 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 --- quickshell/Modules/DankBar/Widgets/WorkspaceSwitcher.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/quickshell/Modules/DankBar/Widgets/WorkspaceSwitcher.qml b/quickshell/Modules/DankBar/Widgets/WorkspaceSwitcher.qml index 50df32e0c..db1ca3f50 100644 --- a/quickshell/Modules/DankBar/Widgets/WorkspaceSwitcher.qml +++ b/quickshell/Modules/DankBar/Widgets/WorkspaceSwitcher.qml @@ -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)