1
0
Fork 0
forked from wry/wry

portal: include mapping_id in screencasts

This commit is contained in:
Julian Orth 2024-10-11 13:23:54 +02:00
parent edafe16742
commit 5df018046c
5 changed files with 31 additions and 5 deletions

View file

@ -100,6 +100,7 @@ impl PortalSession {
&self,
pw_node_id: Option<u32>,
restore_data: Option<Variant<'static>>,
mapping_id: Option<&str>,
) {
let inner_type = DynamicType::DictEntry(
Box::new(DynamicType::String),
@ -133,6 +134,12 @@ impl PortalSession {
value: rd,
});
}
if let Some(mapping_id) = mapping_id {
variants.push(DictEntry {
key: "mapping_id".into(),
value: Variant::String(mapping_id.into()),
});
}
if let Some(reply) = self.start_reply.take() {
match reply {
PortalSessionReply::RemoteDesktop(reply) => {