Skip to content

🐞 Fix window moving further than preview#574

Merged
mrkai77 merged 2 commits into
mrkai77:developfrom
T1mVo:window-movement-fix
Sep 27, 2024
Merged

🐞 Fix window moving further than preview#574
mrkai77 merged 2 commits into
mrkai77:developfrom
T1mVo:window-movement-fix

Conversation

@T1mVo
Copy link
Copy Markdown
Contributor

@T1mVo T1mVo commented Sep 27, 2024

This PR introduces a isPreview argument for the WindowAction.getFrame() function to differentiate between calculating the preview and the target window. If the final frame for the target window gets calculated, the last action will be ignored because LoopManager.lastTargetFrame is already at the desired size/position.

Closes #462

@mrkai77 mrkai77 changed the title Fix window moving further than preview 🐞 Fix window moving further than preview Sep 27, 2024
Copy link
Copy Markdown
Owner

@mrkai77 mrkai77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed a small bug where this would stop working when the preview was disabled, but otherwise, looks good :)

@mrkai77 mrkai77 merged commit cbabeb6 into mrkai77:develop Sep 27, 2024
@T1mVo T1mVo deleted the window-movement-fix branch September 28, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐞 Window doesnt move like the preview suggests

3 participants