I have a problem refocusing the game ‘Familiar Findings’.
In the video of the link, you can see it works as long as I stay in the window where the game launched. I can click around and can click buttons beneath the game window.
Then I swapped the workspace and the window at once. Afterwards I moved the game to the current workspace with the command hyprctl dispatch movetoworkspacesilent "$WS",class:^Familiar Findings$ ($WS is the identifier of the current workspace) and the game could not regain focus.
So as soon as I swap the workspace or even only the window, which is not solely shown in the video, the game does not refocus. I tried the focuswindow dispatcher but it seems to have no effect.
I use per monitor 0 - 9 workspaces. This one e.g. is monitor 0 workspace 2 (0:2). But to be fair I don’t know either why its workspace -1343. Its an automatic number I guess.
I think I get where you are coming from.
According to this documentation: Dispatchers – Hyprland Wiki
”Numerical workspaces (e.g. 1, 2, 13371337) are allowed ONLY between 1 and 2147483647 (inclusive).
Neither 0 nor negative numbers are allowed.”
But in this case its not a numerical workspace but a named workspace created like this hyprctl dispatch workspace name:$workspace
And the number behind it, is created automatically.
Ive never had an application that sits on your ‘desktop’ and is designed to pass through clicks but if its on a sprite. So yeah its only this game. But I would not be sure if others behave like this as well.
Does Wayland already support these kind of applications? In my experience its hard to even place the window where it should be. And then making the clicks pass through windows is also not supported on Wayland I think, but I am not sure on that one.