992 |
format_string_atom = XInternAtom(g_display, "STRING", False); |
format_string_atom = XInternAtom(g_display, "STRING", False); |
993 |
format_utf8_string_atom = XInternAtom(g_display, "UTF8_STRING", False); |
format_utf8_string_atom = XInternAtom(g_display, "UTF8_STRING", False); |
994 |
format_unicode_atom = XInternAtom(g_display, "text/unicode", False); |
format_unicode_atom = XInternAtom(g_display, "text/unicode", False); |
995 |
|
|
996 |
|
/* rdesktop sets _RDESKTOP_CLIPBOARD_FORMATS on the root window when acquiring the clipboard. |
997 |
|
Other interested rdesktops can use this to notify their server of the available formats. */ |
998 |
|
rdesktop_clipboard_formats_atom = |
999 |
|
XInternAtom(g_display, "_RDESKTOP_CLIPBOARD_FORMATS", False); |
1000 |
|
XSelectInput(g_display, DefaultRootWindow(g_display), PropertyChangeMask); |
1001 |
|
|
1002 |
num_targets = 0; |
num_targets = 0; |
1003 |
targets[num_targets++] = targets_atom; |
targets[num_targets++] = targets_atom; |
1004 |
targets[num_targets++] = timestamp_atom; |
targets[num_targets++] = timestamp_atom; |
1005 |
targets[num_targets++] = rdesktop_clipboard_formats_atom; |
targets[num_targets++] = rdesktop_clipboard_formats_atom; |
|
targets[num_targets++] = format_string_atom; |
|
1006 |
#ifdef USE_UNICODE_CLIPBOARD |
#ifdef USE_UNICODE_CLIPBOARD |
1007 |
targets[num_targets++] = format_utf8_string_atom; |
targets[num_targets++] = format_utf8_string_atom; |
1008 |
#endif |
#endif |
1009 |
targets[num_targets++] = format_unicode_atom; |
targets[num_targets++] = format_unicode_atom; |
1010 |
|
targets[num_targets++] = format_string_atom; |
1011 |
targets[num_targets++] = XA_STRING; |
targets[num_targets++] = XA_STRING; |
|
|
|
|
/* rdesktop sets _RDESKTOP_CLIPBOARD_FORMATS on the root window when acquiring the clipboard. |
|
|
Other interested rdesktops can use this to notify their server of the available formats. */ |
|
|
rdesktop_clipboard_formats_atom = |
|
|
XInternAtom(g_display, "_RDESKTOP_CLIPBOARD_FORMATS", False); |
|
|
XSelectInput(g_display, DefaultRootWindow(g_display), PropertyChangeMask); |
|
1012 |
} |
} |