Skip to content

Fix overlay positioning on secondary monitors#72

Open
GithubAnant wants to merge 2 commits intofarzaa:mainfrom
GithubAnant:main
Open

Fix overlay positioning on secondary monitors#72
GithubAnant wants to merge 2 commits intofarzaa:mainfrom
GithubAnant:main

Conversation

@GithubAnant
Copy link
Copy Markdown

Summary:

This PR fixes a multi-monitor positioning issue where the buddy overlay could render outside the visible bounds on non-primary displays.

What was happening

The hosting view inside each overlay window was being positioned using global screen coordinates. On secondary monitors, that could place content outside the window’s local coordinate space, making the buddy appear only on the first screen.

What changed

Updated the overlay hosting view to:
use a local origin of (0, 0)
size to the current screen’s dimensions
resize with the window via autoresizing mask

It's just one file with changes so should be super easy!

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.

1 participant