Fix ACTIVATE/DEACTIVATE for Windows on minimize/restore