overview: no cursor warp for click-to-focus, add ws focus

This commit is contained in:
end-4
2025-04-24 10:01:26 +02:00
parent e612abad23
commit 700b126a9e
2 changed files with 18 additions and 4 deletions
@@ -80,10 +80,13 @@ Rectangle { // Window
onExited: root.hovered = false
onPressed: root.pressed = true
onReleased: root.pressed = false
onClicked: {
onClicked: (event) => {
if (windowData) {
closeOverview.running = true
Hyprland.dispatch(`keyword cursor:no_warps true`)
Hyprland.dispatch(`focuswindow address:${windowData.address}`)
Hyprland.dispatch(`keyword cursor:no_warps false`)
event.accepted = true
}
}
}