Try getting clipboard from CLIPBOARD if there is no owner for PRIMARY.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@401 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Erik Forsberg 2003-06-06 10:39:10 +00:00
parent 64be4d1174
commit 412f1e6910

View File

@ -634,10 +634,26 @@ cliprdr_handle_server_data_request(STREAM s)
}
else
{
DEBUG_CLIPBOARD(("There were no owner for PRIMARY, sending empty string\n")); // FIXME: Should we always send an empty string?
selectionowner = XGetSelectionOwner(display, clipboard_atom);
if (None != selectionowner)
{
XConvertSelection(display, clipboard_atom,
targets_atom,
rdesktop_clipboard_target_atom, wnd, CurrentTime);
/* The rest of the transfer is handled in
cliprdr_handle_SelectionNotify */
}
else
{
DEBUG_CLIPBOARD(("There were no owner for PRIMARY nor CLIPBOARD, sending empty string\n")); // FIXME: Should we always send an empty string?
cliprdr_send_empty_datapacket();
}
}
}