Making sure the window is visible and not minimized.
clean-up.
Merge pull request #134 from egofree71/master

Make sure the window is visible and not minimized.