main window restore: use save/restore geometry methods instead setGemotery/geometry as the original solution does not work correctly on OS X (and wayland probably); unused MW event handlers commented out