Improve semi-transient behaviour

This fixes the case of first-clicks closing semi-transient popovers.