respect current client selection on session resume

this fixes a bug where non-current non-overlay
clients could get up to the focused session state
when a reconnect occured.
This commit is contained in:
caszuu
2026-02-27 16:03:18 +01:00
committed by xytovl
parent adf4b1fc84
commit 7d11674b2a
5 changed files with 63 additions and 66 deletions
+7 -2
View File
@@ -404,9 +404,14 @@ struct pulse_device : public audio_device
mic_buffer.push(std::move(mic_data));
}
void on_connect() override
void pause() override
{
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, true});
}
void resume() override
{
session.send_control(description());
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, (bool)microphone});
}
pulse_device(