mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-27 19:27:21 -06:00
An auto-hidden taskbar reserves no work area, so the guard that keeps the custom title bar's window borderless left a maximize covering the whole monitor. The shell treats a caption-less window that covers its monitor as a full-screen app, and in PhotoCraft, which has the same guard, the hidden taskbar then did not show when the pointer reached its edge (storytold/photocraft#4845). While a maximized window covers its whole monitor, the guard now finds the taskbars (the Shell_TrayWnd and Shell_SecondaryTrayWnd windows), takes the monitor edge nearest each one's center, and stops the window one pixel short of the monitor on each of those edges where the work area reaches the monitor's edge. A taskbar that reserves a work area is still cleared by the move into the work area. This ports Higgs32584's fix in PhotoCraft (storytold/photocraft#6878). Docs: docs/target-app-parity.md. Co-authored-by: Higgs32584 <mhiggins217@gmail.com>