Skip to content
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

🐞 Fix window moving further than preview #574

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

T1mVo
Copy link
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
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
1 check passed
@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