mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-28 03:37:00 -06:00
With the taskbar on the top edge, a maximize, a restore from the taskbar or a drag to the top of the screen showed a classic title bar above the app bar (#3242, #3723, #2072). The guard that keeps the custom title bar's window borderless trimmed only the bottom of a parked maximize to the work area, so with the taskbar on the top or a side the window still covered it, and the strip between the window's edge and the client area, which winit keeps on the work area, was drawn as an old-style caption. The guard now moves a parked maximize inside the work area on every edge, keeping the resize border it was parked with, which it reads from an edge without a taskbar. A rect it already moved, a dragged or snapped window and a monitor with no reserved taskbar are left alone. The move uses SWP_FRAMECHANGED and SWP_NOCOPYBITS and invalidates the window, so the whole window is drawn again, and the style strip uses SWP_NOCOPYBITS too. This ports FredApps's fix in PhotoCraft (storytold/photocraft#5237). Docs: docs/target-app-parity.md. Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>