Scrolling layout restore from maximized shifts scrolls the view to the right #15616
Unanswered
LyraelRayne
asked this question in
Bugs - Layout
Replies: 1 comment
|
I've been experiencing this ever since I moved from master layout to scrolling back when the lua config was released (0.55 wasnt even released yet i think) Edit: #14338 also reported this |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
First of all, thank you for implementing restoring from maximized/fullscreen on scrolling layout, it is very helpful :)
Hyprland version
0.56.0
What's the bug?
Restoring a window from maximized/fullscreen doesn't restore its position on the screen if it was on the right hand side, instead it acts as if you had scrolled the workspace one position to the right (assuming direction = right)
Reproduction steps
This might not actually be a bug, but if it is in fact the intended behaviour then I would like either a way to make this work the way I expected.
I have tried using lua as a workaround to detect whether the window is on the "left hand side" or "right hand side" but i can't find a way to move the viewport back to where it belongs without also moving the focus (
move -colseems like it should be able to do that, but it moves the focus). Moving the focus causes the focus indicator to flash and potentially might cause issues with input going to the wrong window so I'd like to avoid that if possible. I would be satisfied if there was a way to do something like "scroll view so that the focused windows <left|right> edge is on the <left|right> edge of the screen. I could then detect which edge of the screen the window should be restored to.The use-case is that I often have a browser and terminal open side by side. I often want to maximize the terminal (RHS) for a moment to read some long output, then restore the screen back to its previous state without having to then scroll the viewport back.
Attachments
scrolling layout options
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