add login window min&close event
Revert "add login window min&close event"

This reverts commit 46e34d89c86e42c41bf23fc6410b2832d5135f03.
add login window min&close event