-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FancyZones] Move window into last known position on active work area…
… (if possible) (#4218) * Move window into last known position on active work area (if possible) * Refactor code to avoid double checks * Address PR comments * Perform all HWND checks at one place * Improve handling of active/primary work area in app zone history * Address PR comments: naming, arguments checks * Rename some functions to increase readability * Implement special handling in 2+ monitor scenario * Minor naming change * Simplify * Improve readability * Remove blank line * Don't move away from secondary monitor if there is no app zone history * Update comment * FancyZonesEditor should not be zoned * Preserve width and height (if possible) when opening on active monitor * Maintain w/h whenever possible * Remove scaling, add window coordinates on active monitor top-left corner * If there is no app zone history on secondary screen, fallback to default windows behavior.
- Loading branch information
1 parent
7f25e3b
commit 698e5ec
Showing
2 changed files
with
108 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters