🐛 Undo Loop function truncates window size for windows that were not completely on the screen
Bug Description
If a window is half off the screen, then looped to a different position, using the Undo Loop function does not restore the window to its original size. Whatever part of the window that was visible on the screen will become the new window's dimensions.
Steps To Reproduce
- Create a new window of any Loop-supported program
- Move the window so that part of the window is off screen
- Use Loop to move the window to a new position
- Undo Loop to revert the window to its offscreen position and dimensions
- (Optional) Click and drag the window to see that its dimensions were truncated by the screen's boundaries
Expected Behavior
The Undo Loop function should restore the window's previous size and dimensions, even if part of it is off screen.
Actual Behavior
The Undo Loop function truncates a window's dimensions for edges that leave the bounds of the screen (i.e., go offscreen).
Screenshots
https://github.com/MrKai77/Loop/assets/86716906/36076261-48a2-4133-96eb-5c01bb5433e0
MacOS Version
Sonoma 14.0
Loop Version
Version 1.0.0-beta.15 (817)
Additional Context
No response
Final Checks
- [X] My issue title is descriptive
- [X] This is a single bug (multiple bugs should be reported individually)
This seems to be caused by Loop still applying window padding (of 0 pt in this case) to the window, which causes it to be cropped to fit on the screen. Will fix!