hl.dsp.focus({ workspace = ... }) won't focus an empty workspace on a different output
#15649
Replies: 1 comment 4 replies
|
The reason seems to be as follows. When doing Hyprland/src/config/shared/actions/ConfigActions.cpp Lines 998 to 1003 in 60695e1 It calls Hyprland/src/managers/input/InputManager.cpp Lines 187 to 190 in 60695e1 It detects that the focused monitor is different from the monitor under cursor and forces focus back on the old monitor (wrong): Hyprland/src/managers/input/InputManager.cpp Lines 348 to 349 in 60695e1 But I'm not sure where to fix this. It seems like the whole call chain is some nasty work around something: @vaxerski, your suggestions are welcome. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hyprland version
v0.56.1 at commit 5c9377c clean (version: bump to 0.56.1).
Is this a regression?
Don't know
What's the bug?
When attempting to focus an empty workspace on a different output, the focus leaves and immediately returns to the previously focused workspace. Seems to only have effect with
cursor:no_warps = trueReproduction steps
hyprctl eval 'hl.config({ cursor = { no_warps = true }, input = { follow_mouse = 1 } })hyprctl dispatch 'hl.dsp.focus({ workspace = 10 })'Expected behavior: workspace 10 is focused and remains focused.
Actual behavior: workspace 10 is focused for a short moment and then focus removes to workspace 1.
Attachments
No response
I acknowledge that:
I have searched all (open and closed) discussions and issues and my problem is not there.
I have read the Code of Conduct and agree to follow it.
I wrote this request with my own hands, my own keyboard, and in my own words.
All reactions