mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
remember participantId for use with assistance set control request
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -71,6 +71,8 @@ struct s_encomsp_client_context
|
||||
pcEncomspChangeParticipantControlLevel ChangeParticipantControlLevel;
|
||||
pcEncomspGraphicsStreamPaused GraphicsStreamPaused;
|
||||
pcEncomspGraphicsStreamResumed GraphicsStreamResumed;
|
||||
|
||||
UINT32 participantId;
|
||||
};
|
||||
|
||||
#endif /* FREERDP_CHANNEL_ENCOMSP_CLIENT_ENCOMSP_H */
|
||||
|
||||
Reference in New Issue
Block a user