Skip to content

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