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:
parent
64be4d1174
commit
412f1e6910
20
cliprdr.c
20
cliprdr.c
@ -634,9 +634,25 @@ 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?
|
||||
|
||||
cliprdr_send_empty_datapacket();
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user