Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix new window position Y coordinate calculation for OSX backend. #7101

Conversation

dmirty-kuzmenko
Copy link

I believe we need to use the "first" (not the "current") screen's height to calculate Y coordinate of a window.
By "first" I mean the screen that has (0;0) coordinate at the top left for ImGui and (0;0) at the bottom left for OSX.

Screenshot 2023-12-08 at 12 00 20

Otherwise on secondary monitors it will behave like this:

Screen Recording 2023-12-08 at 12 08 46

Need to use the "first" (not the current) screen's height to calculate Y coordinate. By "first" I mean the screen that has (0;0) coordinate at the top left for ImGui and (0;0) at the bottom left for OSX.
@dmirty-kuzmenko
Copy link
Author

Also #7028 looks good.

@ocornut
Copy link
Owner

ocornut commented Jan 9, 2024

Thank you. I have applied this and other things all-together as part of a683033.
Also see my comment here #7028 (comment) for remaining issues.

@ocornut ocornut closed this Jan 9, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants