fix for MetroWindow taskbar icon disabled when minimize button click event

the title says
Closes #1263 (hopefully)