Export current client tab on dbus
This commit is contained in:
@@ -322,6 +322,9 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
|
||||
self->network_session->send_control(from_headset::session_state_changed{
|
||||
.state = application::get_session_state(),
|
||||
});
|
||||
self->network_session->send_control(from_headset::stream_tab_changed{
|
||||
.tab = self->gui_status,
|
||||
});
|
||||
|
||||
if (self->instance.has_extension(XR_KHR_VISIBILITY_MASK_EXTENSION_NAME))
|
||||
{
|
||||
|
||||
@@ -746,6 +746,7 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
{
|
||||
if (auto new_status = next_gui_status.load(); new_status != gui_status)
|
||||
{
|
||||
spdlog::info("Switch tab from {} to {}", magic_enum::enum_name(gui_status), magic_enum::enum_name(new_status));
|
||||
stored_gui_status = gui_status;
|
||||
gui_status = new_status;
|
||||
gui_status_last_change = predicted_display_time;
|
||||
|
||||
Reference in New Issue
Block a user