518 |
{ |
{ |
519 |
res = XGetWindowProperty(g_display, g_wnd, |
res = XGetWindowProperty(g_display, g_wnd, |
520 |
rdesktop_primary_timestamp_target_atom, 0, |
rdesktop_primary_timestamp_target_atom, 0, |
521 |
XMaxRequestSize(g_display), False, XA_INTEGER, |
XMaxRequestSize(g_display), False, AnyPropertyType, |
522 |
&type, &format, &nitems, &bytes_left, &data); |
&type, &format, &nitems, &bytes_left, &data); |
523 |
} |
} |
524 |
else |
else |
525 |
{ |
{ |
526 |
res = XGetWindowProperty(g_display, g_wnd, |
res = XGetWindowProperty(g_display, g_wnd, |
527 |
rdesktop_clipboard_timestamp_target_atom, 0, |
rdesktop_clipboard_timestamp_target_atom, 0, |
528 |
XMaxRequestSize(g_display), False, XA_INTEGER, |
XMaxRequestSize(g_display), False, AnyPropertyType, |
529 |
&type, &format, &nitems, &bytes_left, &data); |
&type, &format, &nitems, &bytes_left, &data); |
530 |
} |
} |
531 |
|
|
532 |
|
|
533 |
if ((res != Success) || (nitems != 1)) |
if ((res != Success) || (nitems != 1) || (format != 32)) |
534 |
{ |
{ |
535 |
DEBUG_CLIPBOARD(("XGetWindowProperty failed!\n")); |
DEBUG_CLIPBOARD(("XGetWindowProperty failed!\n")); |
536 |
goto fail; |
goto fail; |