Skip to content

feat: Support multiple monitors#51

Open
truemogician wants to merge 1 commit intoantfu:masterfrom
truemogician:contribution
Open

feat: Support multiple monitors#51
truemogician wants to merge 1 commit intoantfu:masterfrom
truemogician:contribution

Conversation

@truemogician
Copy link
Copy Markdown

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.
@rifaterdemsahin
Copy link
Copy Markdown

image image

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.

2 participants