197 |
{ |
{ |
198 |
res = XGetWindowProperty(g_display, DefaultRootWindow(g_display), |
res = XGetWindowProperty(g_display, DefaultRootWindow(g_display), |
199 |
rdesktop_clipboard_formats_atom, 0, |
rdesktop_clipboard_formats_atom, 0, |
200 |
XMaxRequestSize(g_display), False, XA_STRING, &type, &format, |
XMaxRequestSize(g_display), False, XA_STRING, &type, |
201 |
&nitems, &bytes_left, &data); |
&format, &nitems, &bytes_left, &data); |
202 |
|
|
203 |
if ((res == Success) && (nitems > 0)) |
if ((res == Success) && (nitems > 0)) |
204 |
{ |
{ |
296 |
clipboard_atom = XInternAtom(g_display, "CLIPBOARD", False); |
clipboard_atom = XInternAtom(g_display, "CLIPBOARD", False); |
297 |
targets_atom = XInternAtom(g_display, "TARGETS", False); |
targets_atom = XInternAtom(g_display, "TARGETS", False); |
298 |
timestamp_atom = XInternAtom(g_display, "TIMESTAMP", False); |
timestamp_atom = XInternAtom(g_display, "TIMESTAMP", False); |
299 |
rdesktop_clipboard_target_atom = XInternAtom(g_display, "_RDESKTOP_CLIPBOARD_TARGET", False); |
rdesktop_clipboard_target_atom = |
300 |
|
XInternAtom(g_display, "_RDESKTOP_CLIPBOARD_TARGET", False); |
301 |
incr_atom = XInternAtom(g_display, "INCR", False); |
incr_atom = XInternAtom(g_display, "INCR", False); |
302 |
targets[0] = targets_atom; |
targets[0] = targets_atom; |
303 |
targets[1] = XInternAtom(g_display, "TEXT", False); |
targets[1] = XInternAtom(g_display, "TEXT", False); |