Fix ACTIVATE/DEACTIVATE for Windows on minimize/restore
Fix ACTIVATE/DEACTIVATE for Windows on minimize/restore

thomasuster/NME,madrazo/nme,thomasuster/NME,thomasuster/NME,madrazo/nme,haxenme/nme,thomasuster/NME,madrazo/nme,thomasuster/NME,haxenme/nme,madrazo/nme,thomasuster/NME,haxenme/nme,haxenme/nme,haxenme/nme,madrazo/nme,madrazo/nme