Open SuiziM opened 1 week ago
Hey @SuiziM thank you for reporting this issue! I made some tests and I can reproduce the problem. I made a bugfix, let me know if it works and if it doesn't create other problems :smile:
Thanks for the quick turnaround! This mostly addresses the issue; I’ve only noticed two edge cases, which might be harder to reproduce. One might not even be related to this.
Occurs when positioning the window too close to a screen border, then tiling, untiling, and attempting to tile in the direction of the near screen border.
Steps To Reproduce
Tiling in other directions still works.
Screenrecording
The recording first shows that retiling after untiling works correctly toward distant screen borders, but then demonstrates the failure when tiling toward a very close screen border.
Occurs when positioning the window so it overlaps two tiles, while keeping the center in one tile (e.g., the left). Tiling toward the other tile (e.g., right) does not work as expected.
Steps to Reproduce
After using hotkeys to untile, tiling works as expected.
Screenrecording
(I forgot to enable the mouse pointer display in the screen recording.)
Sorry, for the "Opening-Closing"-spam. I'm new to Github.
Hey @SuiziM thank you for the feedback. The second issue is how Tiling Shell works. The algorithm in that particular occasion chooses the nearest tile to the center. Did you expect another behavior, such as the nearest tile in the direction of the hotkey? The issue one seems a little bit particular and I'm able to reproduce the problem. I'm working on a fix :smile:
Sorry, for taking a while to answer.
Regarding the "second issue": When I use the 'Move tile to right' hotkey in that case, the window moves to the left, which is odd to me.
This becomes even more noticeable in the following screencast: if I shift the window just a few millimeters, the same hotkey produces entirely different behavior.
I don't think anyone would expect the window to tile to the left in this case.
Possible Improvement: Reference Point Based on Direction Playing around with more "advanced" tiling layouts, trying out the tiling hotkeys and thinking it through, I feel like the reference point should depend on the direction i.e
Maybe with a slight offset towards the center, might involve some trial and error to see what's really intuitive. Reference for points
Inconsistent Behavior Based on "Positioning Method" Even if I'm okay with this behavior, it's still a bit weird that the hotkey behaves differently depending on how the window is positioned:
The behaviour of the "Span window to X / Above /Below" hotkey also gets changed by the "Untile"-hotkey compared to moving it there by mouse.
Hey thank you for sharing this! I agree with you: Tiling Shell's keybindings behave differently when a window is untiled and this is counter intuitive. IDK why I made this :laughing:
I removed such difference, check it out and let me know how it is now! Thank you
After using hotkeys to move or span a window across tiles and then un-tiling it, the "Untile focused window" hotkey fails to work after re-tiling.
To Reproduce
Screenrecording
Super + Left = Move window to left tile Super + Delete = Untile focused window
Information
Thanks for all the great work on Tiling Shell!