remember participantId for use with assistance set control request

This commit is contained in:
garbb
2022-09-18 12:09:23 -07:00
committed by akallabeth
parent 6a6e3340c7
commit 940317282c
2 changed files with 6 additions and 1 deletions

View File

@@ -984,7 +984,7 @@ BOOL freerdp_client_encomsp_set_control(EncomspClientContext* encomsp, BOOL cont
if (!encomsp)
return FALSE;
pdu.ParticipantId = 0;
pdu.ParticipantId = encomsp->participantId;
pdu.Flags = ENCOMSP_REQUEST_VIEW;
if (control)
@@ -1013,6 +1013,9 @@ client_encomsp_participant_created(EncomspClientContext* context,
settings = cctx->context.settings;
WINPR_ASSERT(settings);
if (participantCreated->Flags & ENCOMSP_IS_PARTICIPANT)
context->participantId = participantCreated->ParticipantId;
request = freerdp_settings_get_bool(settings, FreeRDP_RemoteAssistanceRequestControl);
if (request && (participantCreated->Flags & ENCOMSP_MAY_VIEW) &&
!(participantCreated->Flags & ENCOMSP_MAY_INTERACT))

View File

@@ -71,6 +71,8 @@ struct s_encomsp_client_context
pcEncomspChangeParticipantControlLevel ChangeParticipantControlLevel;
pcEncomspGraphicsStreamPaused GraphicsStreamPaused;
pcEncomspGraphicsStreamResumed GraphicsStreamResumed;
UINT32 participantId;
};
#endif /* FREERDP_CHANNEL_ENCOMSP_CLIENT_ENCOMSP_H */