ab12f6bf66
The FWasMinimized gate never armed — FMX evidently fires no resize while the window is iconic — so activate bailed out and the maximised window still came back normal. Stop depending on that signal or on event ordering: snapshot the intent at activate (before a restore-time resize can overwrite it) and apply the correction from a queued call, which necessarily runs after FMX has finished sizing the window. FRestoring keeps that resize out of the tracking, and the intent is re-asserted afterwards since our own ShowWindow fires one too. Adds [winstate] LogLine traces so the next iteration works from observed event order instead of guesses (needs config.txt with debug=true). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>