
Since polkit takes a few milliseconds from initiating the session to emitting the "request" signal, don't introduce visual distraction by hiding the password entry and showing it again a few ms later. So start a timeout of 200 ms when we destroy a session and if no session request (i.e. a request for a password-authentication) happened during this timeout, hide the password entry. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/788