[client,x11] properly initialize file clipboard

This commit is contained in:
Armin Novak 2023-02-27 17:30:01 +01:00 committed by akallabeth
parent b526078c3c
commit 0fb242da7b

View File

@ -1876,7 +1876,10 @@ xf_cliprdr_server_format_data_response(CliprdrClientContext* context,
if (strcmp(clipboard->requestedFormat->formatName, type_FileGroupDescriptorW) == 0)
{
if (!cliprdr_file_context_update_server_data(clipboard->file, data, size))
if (!cliprdr_file_context_update_base(clipboard->file, clipboard->system))
{
}
else if (!cliprdr_file_context_update_server_data(clipboard->file, data, size))
WLog_WARN(TAG, "failed to update file descriptors");
srcFormatId = ClipboardGetFormatId(clipboard->system, type_FileGroupDescriptorW);