From fbcc28785a2f42b17becf1d208d982cf218ede76 Mon Sep 17 00:00:00 2001 From: arfan Date: Fri, 15 May 2026 20:48:03 +0700 Subject: [PATCH] fix(HyprlandService): Correct window address format for focus dispatch (#2426) --- quickshell/Services/CompositorService.qml | 8 ++++++-- quickshell/Services/HyprlandService.qml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/quickshell/Services/CompositorService.qml b/quickshell/Services/CompositorService.qml index 90746b11..272ab3f2 100644 --- a/quickshell/Services/CompositorService.qml +++ b/quickshell/Services/CompositorService.qml @@ -358,8 +358,12 @@ Singleton { ordered.push.apply(ordered, arr); } - - return ordered.map(x => x.wayland).filter(w => w !== null && w !== undefined); + return ordered.map(x => { + if (!x.wayland) + return null; + x.wayland.address = x.address; + return x.wayland; + }).filter(w => w !== null && w !== undefined); } function filterCurrentWorkspace(toplevels, screen) { diff --git a/quickshell/Services/HyprlandService.qml b/quickshell/Services/HyprlandService.qml index 2e5371f8..295a1902 100644 --- a/quickshell/Services/HyprlandService.qml +++ b/quickshell/Services/HyprlandService.qml @@ -355,7 +355,7 @@ decoration { function focusWindow(windowAddress) { if (Hyprland.usingLua) { - Hyprland.dispatch(`hl.dsp.focus({window = "address:${windowAddress}"})`); + Hyprland.dispatch(`hl.dsp.focus({window = "address:0x${windowAddress}"})`); } else { Hyprland.dispatch(`focuswindow address:${windowAddress}`); }