fix(window-state): restore window position if the one of the window corners intersects with monitor (#898)

* fix(window-state): restore window positions that matches monitor positions
closes #892

* check for intersections of any window corner instead of only top-left
This commit is contained in:
Amr Bashir
2024-01-25 01:48:46 +02:00
committed by GitHub
parent 035a4824d6
commit 70d99086de
2 changed files with 70 additions and 20 deletions
+8
View File
@@ -0,0 +1,8 @@
---
"window-state": "patch"
---
Address a couple of issues with restoring positions:
- Fix restoring window positions correctly when the top-left corner of the window was outside of the monitor.
- Fix restore maximization state only maximized on main monitor.