Hyprland
Hyprland copied to clipboard
Swallowing a window should not alter the current window landscape
There are 2 (IMO) deficiencies with the current window swallowing behavior:
-
When you swallow a window, upon closing the window that swallows it, focus is not restored to the swallowed window - it instead goes to the next window. Example: In master-stack layout with new-is-master=true, open firefox and then foot (with foot in the swallow regex). Open a video with mpv in foot, then close the video. Expected behavior is for foot for to be focused, instead firefox is focused. This makes no sense. Foot ought to be focused instead.
-
A swallowing window should not be treated as a new window, it should only replace the window that it swallows. Example: Again in master-stack layout and with new-is-master=true, open foot and then firefox, then open a video with mpv in foot. mpv now becomes the master window. Instead I think firefox should remain the master window, since mpv is not a new window - it is only temporarily swallowing foot.
I think that swallowing a window should not alter the "landscape", by that I mean the structure of the current workspace. A swallowing window should just temporarily replace the window that it swallows, and the pre-swallow "landscape" should return once a window is unswallowed, as if nothing ever happened. Basically I want the workspace to be identical before and after a window has been swallowed and then unswallowed. This is the current behavior of dwl's swallow implementation, so it should be possible.
it is possible but the current system is not made for it. Since it generally works, I am treating this as not very high in priority
I would love to have that too