Auth-dialog needs focus to auto-connect
Steps to reproduce
- Generate an openconnect VPN connection in NM, connect once and save credentials, check auto-connect box
- Make this VPN auto-connect when a wired/wireless connection is established (either in nm-connection editor or using
nmcli
settingconnection.secondaries
) - Open some program and then connect the wired/wireless connection
Expected behaviour
The openconnect VPN connects automatically in the background when the network connection is established.
Actual behaviour
The auth-dialog opens in the background and waits to get focus. Once it gets focus it disappears and connects automatically.