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).
This commit is contained in:
Sapphire
2025-11-02 08:38:49 +01:00
committed by xytovl
parent c0dc193247
commit 631025a513
+4
View File
@@ -304,6 +304,10 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
return info;
}());
self->network_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)