From 0413dfe7df0ccab39c3349d682e84249a9551fa3 Mon Sep 17 00:00:00 2001 From: garbb Date: Tue, 13 Sep 2022 10:41:12 -0700 Subject: [PATCH] if /auto-request-control, only request control once upon connect if auto-request-control setting is enabled then only request control once upon connect, otherwise it will auto request control again every time server turns off control which is a bit annoying. --- client/common/client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/common/client.c b/client/common/client.c index cd3501f32..2a9e5fb03 100644 --- a/client/common/client.c +++ b/client/common/client.c @@ -1019,6 +1019,11 @@ client_encomsp_participant_created(EncomspClientContext* context, { if (!freerdp_client_encomsp_set_control(context, TRUE)) return ERROR_INTERNAL_ERROR; + + // if auto-request-control setting is enabled then only request control once upon connect, + // otherwise it will auto request control again every time server turns off control which + // is a bit annoying + freerdp_settings_set_bool(settings, FreeRDP_RemoteAssistanceRequestControl, FALSE); } return CHANNEL_RC_OK;