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

Mac: window position calculated incorrectly #1451

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

Mac: window position calculated incorrectly #1451

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

SDLBugzilla commented Feb 10, 2021

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: Mac OS X (All), x86

Comments on the original bug report:

On 2014-04-25 03:05:57 +0000, Alex Szpakowski wrote:

Created attachment 1633
Patch to fix the y-axis of window positions in OS X

As of the latest change to window position calculations on Mac OS X (https://hg.libsdl.org/SDL/rev/94af945dbb57), the Y axis of window positions is calculated incorrectly internally - it uses the height of [screen visibleFrame] to flip the y axis, but that height doesn't include the dock height, so window positions are menubar_height + dock_height + pos on the Y axis instead of just menubar_height + pos.

I have attached a small patch which fixes the issue.

On 2014-04-25 04:06:53 +0000, (disabled) Jørgen Tjernø wrote:

Thanks for the report & patch! Submitted in https://hg.libsdl.org/SDL/rev/354dabd2cb58

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

No branches or pull requests

1 participant