qs: fix hyprland dispatchers

This commit is contained in:
end-4
2026-05-11 23:45:44 +02:00
parent 6c041b953a
commit 760c7034aa
10 changed files with 27 additions and 33 deletions
@@ -186,7 +186,7 @@ Rectangle {
} else {
root.draggingWindow = false;
if (root.hoveredWorkspace !== null && root.hoveredWorkspace.workspace !== windowItem.hyprlandClient.workspace.id) {
Hyprland.dispatch(`movetoworkspacesilent ${root.hoveredWorkspace.workspace}, address:${windowItem.hyprlandClient.address}`);
Hyprland.dispatch(`hl.dsp.window.move({ workspace = ${root.hoveredWorkspace.workspace}, follow = false, window = "address:${windowItem.hyprlandClient.address}" })`)
} else {
windowItem.openedX = 0;
windowItem.openedY = 0;
@@ -292,7 +292,7 @@ Rectangle {
onClicked: {
GlobalStates.overviewOpen = false;
root.closed(); // Close immediately to avoid weird animations
Hyprland.dispatch(`workspace ${workspaceItem.workspace}`);
Hyprland.dispatch(`hl.dsp.focus({workspace = ${workspaceItem.workspace}})`);
}
}
}