on Mac, when focusing on the application, the main window loses focus immediately

Often, not always, When I switch to the eM Client application window, the main window immediately loses focus and I have to re-switch to it. Since it doesn’t happen _every_ time, I can’t quite figure out what the specific characteristics are that cause the problem. But it is quite annoying.