A simple, small calculator placed discreetly near the Windows Taskbar or anywhere on the screen

fix: restore calculator window on-screen when saved monitor is disconnected master

PlaceInitial() restored the saved window position from the registry without checking that it still landed on a connected monitor. After detaching an external display the window ended up off-screen and invisible (ToggleVisible shows it with SWP_NOMOVE). Validate the target rect with MonitorFromRect (MONITOR_DEFAULTTONULL); if it intersects no active monitor, discard the saved position and fall through to the first-run bottom-right anchoring. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>


+9 -2
1 changed file