Make the window maximize before testing.
Merge branch 'master' into master2