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

feat: Support multiple monitors #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

truemogician
Copy link

Description

Live-Draw currently only works for the primary monitor. You cannot draw on additional screens. This PR solves this problem. The approach is to set the bounding of the window to cover all monitors at the beginning. To make sure the palette will always be in visible areas, it'll be placed in the center of the primary screen during this process. Additionally, since the screen settings may change, this process will also be executed again when it happens (triggered by Microsoft.Win32.SystemEvents.DisplaySettingsChanged).
I personally have 2 screens, and it works fine on my computer. I suppose it'll also work for more than 2 monitors.

Set the bounding of window to cover all monitors and place the palette in the center of the primary screen when the window is loaded. This process will be executed again when the screen settings are changed.
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.

None yet

1 participant