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

SDL3: Add hack to make resizing store windowed size to config #6550

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

Susko3
Copy link
Member

@Susko3 Susko3 commented Mar 13, 2025

This PR changes the buggy workaround introduced in ff2ee9d to only apply when the user is not holding left click. I.e. if the user is holding left click (when resizing the window), windowed size will be stored to config.

#6264 (comment) should not regress with this change. The user is unlikely to be holding left click when changing the window mode to borderless:

  • F11 and Alt+Enter don't work when holding left click
  • if using the dropdown, the selected window mode is only applied after releasing left click.

Please test it with of! Tests → Platform → Borderless. If you hold left click, the test should fail (macOS and Linux).

- Allows users to precisely adjust window size
- Keeps the workaround for ppy#6264 (comment)
Copy link
Contributor

@smoogipoo smoogipoo left a comment

Choose a reason for hiding this comment

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

Looks to work

@smoogipoo smoogipoo merged commit 1c92a7b into ppy:master Mar 20, 2025
14 checks passed
@Susko3 Susko3 deleted the sdl3-window-resize-hack branch March 20, 2025 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SDL3: TrackedSetting for WindowedSize is no longer updated during a resize on windows
2 participants