diff --git a/docs/superpowers/VERIFICATION.md b/docs/superpowers/VERIFICATION.md index 69ad20f..fccc9ef 100644 --- a/docs/superpowers/VERIFICATION.md +++ b/docs/superpowers/VERIFICATION.md @@ -42,3 +42,19 @@ Add-AppxPackage -Path Packaging\TaskbarCalculator.msix - [ ] App installs and appears in Start; launches to the tray - [ ] Right-click → *Start at login* is enabled/checkable (not grayed) - [ ] Toggling it on shows the app under Settings → Apps → Startup + +## Auto-hide caption (2026-07-15) + +Verified interactively by the user on the fixed build (commit 735d272): + +- ✅ Caption + X visible only while the window is active; chromeless when inactive. +- ✅ Display never moves when the frame toggles (client rect pinned). +- ✅ Position persists across restarts with no vertical drift (canonical client origin). +- ✅ X hides to tray; drag by caption and by body both work. +- ✅ Keyboard entry still wired: `12+34` Enter → `46`. +- ✅ Two-monitor case: calculator on a secondary monitor, repeated focus toggles — no + jumping (per-monitor work-area clamp). +- ✅ Engine regression: 16/16 (`tests\build-and-run.cmd`). + +Known accepted behavior (see spec): caption disappears while the tray menu / About +dialog is open; a foreground-denied show leaves the window chromeless until clicked. diff --git a/docs/superpowers/specs/2026-07-15-auto-hide-caption-design.md b/docs/superpowers/specs/2026-07-15-auto-hide-caption-design.md index 2a2a95b..416ddbb 100644 --- a/docs/superpowers/specs/2026-07-15-auto-hide-caption-design.md +++ b/docs/superpowers/specs/2026-07-15-auto-hide-caption-design.md @@ -30,7 +30,8 @@ caption grows upward when it appears and retracts when it disappears; the displa number never moves. - On toggle: take the current client rect in screen coordinates - (`GetClientRect` + `ClientToScreen`), compute the new window rect for the new style + (`GetClientRect` + `MapWindowPoints`, which stays correct under RTL mirroring), + compute the new window rect for the new style with `AdjustWindowRectEx`, and pass position + size to the same `SetWindowPos` call that applies `SWP_FRAMECHANGED`. - Safety clamp: if growing upward would push the window top above the work area top,