Save maximized state manually

Work around a Qt bug.
https://bugreports.qt-project.org/browse/QTBUG-21371

Should fix #63 but may need furthur testing. Not sure how it would work
under multi-screen environments.