Either dock icon or menu icon must be visible; fixes #418.