mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
On Windows the app-drawn frame's hit test hands the title bar to the OS, which runs the move: the app sees neither the press nor the release. A new primary_down service (GetAsyncKeyState) tells when the button goes up; a window that moved and ends with the OS pointer on its bar over the main window's tab strip docks. The drop target is the tab strip, or a tab-high band at the top of the document area where no strip shows; the app looks again every 50 ms while such a move lasts and repaints after docking, so the OS window closes at once. Co-Authored-By: Claude Opus 5.5 <[email protected]>