1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-16 17:22:45 -04:00

fix(HyprlandService): Correct window address format for focus dispatch (#2426)

This commit is contained in:
arfan
2026-05-15 20:48:03 +07:00
committed by GitHub
parent 1c1ab1c7d5
commit fbcc28785a
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -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) {
+1 -1
View File
@@ -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}`);
}