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

Always use window position in UserInputManager #6440

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

Conversation

Susko3
Copy link
Member

@Susko3 Susko3 commented Nov 29, 2024

The window position is updated when SDL_WINDOWEVENT_MOVED is sent (which does get sent when changing to fullscreen or borderless) and SDL returns the display position when fullscreen.

  • Windows
  • macOS
  • Linux

Copy link
Member

@frenzibyte frenzibyte left a comment

Choose a reason for hiding this comment

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

Replying to OP, sure the SDL code for returning display bounds on SDL_GetWindowPosition is platform-agnostic, but this doesn't confirm that all platforms will correctly trigger a SDL_EVENT_WINDW_MOVED event. Requesting a double-check on other platforms, macOS is fine on my multi-monitor setup.

@frenzibyte frenzibyte requested a review from a team November 29, 2024 03:05
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.

2 participants