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:
@@ -358,8 +358,12 @@ Singleton {
|
|||||||
|
|
||||||
ordered.push.apply(ordered, arr);
|
ordered.push.apply(ordered, arr);
|
||||||
}
|
}
|
||||||
|
return ordered.map(x => {
|
||||||
return ordered.map(x => x.wayland).filter(w => w !== null && w !== undefined);
|
if (!x.wayland)
|
||||||
|
return null;
|
||||||
|
x.wayland.address = x.address;
|
||||||
|
return x.wayland;
|
||||||
|
}).filter(w => w !== null && w !== undefined);
|
||||||
}
|
}
|
||||||
|
|
||||||
function filterCurrentWorkspace(toplevels, screen) {
|
function filterCurrentWorkspace(toplevels, screen) {
|
||||||
|
|||||||
@@ -355,7 +355,7 @@ decoration {
|
|||||||
|
|
||||||
function focusWindow(windowAddress) {
|
function focusWindow(windowAddress) {
|
||||||
if (Hyprland.usingLua) {
|
if (Hyprland.usingLua) {
|
||||||
Hyprland.dispatch(`hl.dsp.focus({window = "address:${windowAddress}"})`);
|
Hyprland.dispatch(`hl.dsp.focus({window = "address:0x${windowAddress}"})`);
|
||||||
} else {
|
} else {
|
||||||
Hyprland.dispatch(`focuswindow address:${windowAddress}`);
|
Hyprland.dispatch(`focuswindow address:${windowAddress}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user