Allow changing refresh rate during stream

This commit is contained in:
Sapphire
2025-11-11 22:09:04 +01:00
committed by xytovl
parent 68f6bf5e48
commit 015b242e27
8 changed files with 102 additions and 23 deletions
+4 -1
View File
@@ -512,10 +512,13 @@ gboolean control_received(gint fd, GIOCondition condition, gpointer user_data)
{
std::visit(utils::overloaded{
[&](const wivrn::from_headset::headset_info_packet & info) {
on_headset_info_packet(std::get<wivrn::from_headset::headset_info_packet>(*packet));
on_headset_info_packet(info);
inhibitor.emplace();
wivrn_server_set_headset_connected(dbus_server, true);
},
[&](const wivrn::from_headset::settings_changed & settings) {
wivrn_server_set_preferred_refresh_rate(dbus_server, settings.preferred_refresh_rate);
},
[&](const wivrn::from_headset::start_app & request) {
const auto & apps = list_applications();
if (auto it = apps.find(request.app_id); it != apps.end())