X11: don't instanciate a clipboard implementation when clipboard is disabled

This commit is contained in:
David Fort 2021-03-15 21:53:39 +01:00 committed by akallabeth
parent 3765a9fe35
commit 4753c64038

View File

@ -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)))