Fix minimizing from taskbar and system menu
Merge pull request #4 from AlexxEG/master

Fix minimizing from taskbar and system menu