fixed maximized mainwindow looses old pos/size in settings
-maximized state will be simply ignored
-needs to be tested for windows (complication arises because isMaximized() may not work the same on X11 and windows)