Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.