634 |
} |
} |
635 |
else |
else |
636 |
{ |
{ |
|
DEBUG_CLIPBOARD(("There were no owner for PRIMARY, sending empty string\n")); // FIXME: Should we always send an empty string? |
|
637 |
|
|
638 |
cliprdr_send_empty_datapacket(); |
selectionowner = XGetSelectionOwner(display, clipboard_atom); |
639 |
|
if (None != selectionowner) |
640 |
|
{ |
641 |
|
XConvertSelection(display, clipboard_atom, |
642 |
|
targets_atom, |
643 |
|
rdesktop_clipboard_target_atom, wnd, CurrentTime); |
644 |
|
|
645 |
|
/* The rest of the transfer is handled in |
646 |
|
cliprdr_handle_SelectionNotify */ |
647 |
|
|
648 |
|
} |
649 |
|
else |
650 |
|
{ |
651 |
|
|
652 |
|
DEBUG_CLIPBOARD(("There were no owner for PRIMARY nor CLIPBOARD, sending empty string\n")); // FIXME: Should we always send an empty string? |
653 |
|
|
654 |
|
cliprdr_send_empty_datapacket(); |
655 |
|
} |
656 |
} |
} |
657 |
|
|
658 |
|
|