Skip to content

[Windows] Use frameless window to implement fullscreen #531

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

Merged
merged 2 commits into from
May 29, 2025

Conversation

YuiHrsw
Copy link
Contributor

@YuiHrsw YuiHrsw commented Feb 21, 2025

This may fixes #521 and fixes #211
closes #456.

Key Changes

  1. Use (WS_THICKFRAME | WS_MAXIMIZEBOX) instead of WS_OVERLAPPEDWINDOW can avoid the native title bar appearing on exit fullscreen.
    This is inspired by this article
  2. When the app is not maximized, call SetAsFrameless then change the app position and size separately (avoid UI stretching). To avoid UI freezing after enter fullscreen, the force refresh is removed.

@rohitbhoite
Copy link

Any plans to merge this pr?. Need it on urgent basis.

@lijy91
Copy link
Member

lijy91 commented May 29, 2025

LGMT

@lijy91 lijy91 merged commit ff6b0f4 into leanflutter:main May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants