From 631025a513314942dfa1e8da0d01bd0226d6f275 Mon Sep 17 00:00:00 2001 From: Sapphire Date: Sat, 1 Nov 2025 23:09:09 -0500 Subject: [PATCH] Send session state on connection On Quest, quitting WiVRn from the system menu while connected, then opening the app again and reconnecting wouldn't send the session state to the server, causing compositors to keep dropping frames until the session state is changed again (e.g. by opening the system menu again). --- client/scenes/stream.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index f85a02b1..7d0fd39b 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -304,6 +304,10 @@ std::shared_ptr scenes::stream::create(std::unique_ptrnetwork_session->send_control(from_headset::session_state_changed{ + .state = application::get_session_state(), + }); + if (self->instance.has_extension(XR_KHR_VISIBILITY_MASK_EXTENSION_NAME)) { for (uint8_t view = 0; view < view_count; ++view)