Improve hide and show main window on Ubuntu
Merge remote-tracking branch 'chiiph/bug/show_hide_improved' into develop