From 4753c640381df69162f3b249fec365c9ea729509 Mon Sep 17 00:00:00 2001 From: David Fort Date: Mon, 15 Mar 2021 21:53:39 +0100 Subject: [PATCH] X11: don't instanciate a clipboard implementation when clipboard is disabled --- client/X11/xf_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/X11/xf_client.c b/client/X11/xf_client.c index f40d9cba8..eec7f2932 100644 --- a/client/X11/xf_client.c +++ b/client/X11/xf_client.c @@ -1332,7 +1332,7 @@ static BOOL xf_post_connect(freerdp* instance) update->SetKeyboardIndicators = xf_keyboard_set_indicators; update->SetKeyboardImeStatus = xf_keyboard_set_ime_status; - if (!(xfc->clipboard = xf_clipboard_new(xfc))) + if (settings->RedirectClipboard && !(xfc->clipboard = xf_clipboard_new(xfc))) return FALSE; if (!(xfc->xfDisp = xf_disp_new(xfc)))