Report focus correctly after reconnecting, fixes #171