03a8a6f8a6
The earlier fix only covered the tray restore path, but Show desktop / taskbar restore never runs our code at all — it is pure Windows + FMX, and FMX brings the window back "normal" after forgetting it was maximised. Track the state the user actually settled on (OnResize, ignoring wsMinimized since that is the state we must survive) and re-apply it on OnActivate, which fires however the user returns: taskbar, tray or Alt+Tab. Gated on FWantMaximized so a window the user deliberately un-maximised is left alone. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>