Skip to content

X11: Center Message Box on Multi Monitor Displays #12819

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 1, 2025

Conversation

Temdog007
Copy link
Contributor

Message boxes, when using X11, were not centered on a monitor if there were multiple monitors connected and the parent window was NULL. This PR fixes that if XRandr is available.

Use XRandr to find the position of the current screen to center
the message box on that window
@Kontrabant
Copy link
Contributor

This looks good to me, but can you squash the commits into one?

@slouken slouken merged commit 4ef8b6c into libsdl-org:main May 1, 2025
39 checks passed
@slouken
Copy link
Collaborator

slouken commented May 1, 2025

Squashed and merged, thanks!

slouken pushed a commit that referenced this pull request May 1, 2025
Use XRandr to find the position of the current screen to center the message box on that window

(cherry picked from commit 4ef8b6c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants