-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep tiled window ratio #9
Comments
Hi Lepa, I have just committed a new version with |
Hi calandoa! Thank you for your quick response and action! The I also noticed that, if you have a window tiled to the upper half of the screen that has the panel and then move it to the other screen, the window does not touch the screen edge, but there is a gap, approximately the size of the panel. This gap does not exist for left/right tiling. |
1st prb: I tried to reproduce this but I could not. You can try to put: If you try this through your WM, you will not get the output, so you can do it in a terminal: you can get the window id with 2nd prb: yes, I know the problem. This is possible to handle by requesting panel size etc... but I will not adress this at it is too complicated. If your window is perfectly maximized (horizontally or vertically or both) by using WM shortcuts, it should be maximized also after each move so this issue would not happen. |
For the first problem, I did what you said and this is the output, after first tiling a terminal window on the right monitor and then moving it between the monitors:
The drifting is more visible for terminal windows, however still visible for me for every other window. As for the second problem, I respect that you don't want to address that. When I'll have more time, I may look into this and let you know. |
I could not reproduce your problem with such a drift as yours, but I could see some small differences on my side too. I have just added a better rounding in the calculus that might solve your issue. |
Still it isn't fixed, but it is certainly improved. The drift is still significant for the For the rest of the windows, e.g. Thunar, vscode etc, I can notice a thin one pixel line of the window on the right screen, when the window is tiled to the right and moved between the screens (refer to my screenshots above for my monitor setup). If the window is tiled to the left, there is still this one pixel increase in size and you can notice it if you then press the shortcut to tile it. It moves just one pixel. |
Ok, so I guess I fully understood the problem now after several tests. For this I add
So finally I do not see any simple way to work around the problem, as I do not see how it would be possible to know in advance the size rule of the application and prevent it potential flawed algorithm to happen. |
OK. Thanks for looking into this anyway! Would it be possible for you to fix the one pixel problem for the rest of the windows? |
I have two monitors. The left one has a resolution of 1920x1080 pixels and the right one has a resolution of 1366x768 pixels.
Currently, if a window is tiled in one screen, say to the right of the right monitor, and then it's moved to the left screen, the window is not tiled any more. Its vertical size correctly adapts to the screen size, however its horizontal size doesn't change to account for the difference in screen resolution. Also it isn't positioned at the edge of the screen anymore. See screenshots below.
Window tiled to the right of the right monitor.
Window is not tiled when moved to the left monitor and has wrong horizontal ratio for this monitor.
Window tiled to the right of the left monitor.
Window is not tiled when moved to the right monitor and has wrong horizontal ratio for this monitor.
Window tiled to the right of the right monitor.
Window is still tiled when moved to the left monitor and has the correct horizontal ratio for this monitor.
The text was updated successfully, but these errors were encountered: