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

[Windows] Use frameless window to implement fullscreen #531

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

YuiHrsw
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant