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

Restore geometry and window state (on Windows High DPI monitors) #5576

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

jonoomph
Copy link
Member

@jonoomph jonoomph commented Jul 8, 2024

Restore geometry and window state twice (once on creation of main windows, and once after window is shown). This fixes an issue where on Windows, Qt does not yet know about the scaling pixel ratio until the window is shown, causing the geometry to get HUGE, due to the window size increasing on each launch of OpenShot. But on other OSes (Linux, Mac), it seems to work on window creation just fine.

@jonoomph
Copy link
Member Author

jonoomph commented Jul 8, 2024

@jonoomph jonoomph merged commit 228b3d5 into develop Jul 9, 2024
8 checks passed
@jonoomph jonoomph deleted the restore-geometry-twice branch July 9, 2024 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant