first commit for fixing #3111
ensure maximize button is hidden when minimizing
fix an issue where maximized window shows minimized
Fix title cursor when maximized
fixed cursor when minimized
fix an issue where modal behaves weird when minimized and closed
use tabs not spaces
also ensure this works on maximize
added additional comment
Merge pull request #3616 from FinalAngel/support/3111

fixes issue #3111