fix #LINQT-1641 main window steals focus on macos

Merged Gaëlle Braud requested to merge fix/window_focus_mac into master

Merge request reports