Lines Matching refs:g_display
80 extern Display *g_display;
253 DEBUG_CLIPBOARD(("xclip_provide_selection: requestor=0x%08x, target=%s, property=%s, length=%u\n", (unsigned) req->requestor, XGetAtomName(g_display, req->target), XGetAtomName(g_display, req->property), (unsigned) length));
255 XChangeProperty(g_display, req->requestor, req->property,
266 XSendEvent(g_display, req->requestor, False, NoEventMask, &xev);
278 (unsigned) req->requestor, XGetAtomName(g_display, req->target),
279 XGetAtomName(g_display, req->property)));
289 XSendEvent(g_display, req->requestor, False, NoEventMask, &xev);
321 XGetAtomName(g_display, target), (unsigned) source_size));
441 XDeleteProperty(g_display, g_wnd, rdesktop_clipboard_target_atom);
442 XDeleteProperty(g_display, g_wnd, rdesktop_primary_timestamp_target_atom);
443 XDeleteProperty(g_display, g_wnd, rdesktop_clipboard_timestamp_target_atom);
449 XChangeProperty(g_display, DefaultRootWindow(g_display),
473 primary_owner = XGetSelectionOwner(g_display, primary_atom);
477 clipboard_owner = XGetSelectionOwner(g_display, clipboard_atom);
488 XConvertSelection(g_display, primary_atom, timestamp_atom,
490 XConvertSelection(g_display, clipboard_atom, timestamp_atom,
498 XConvertSelection(g_display, primary_atom, targets_atom,
506 XConvertSelection(g_display, clipboard_atom, targets_atom,
542 XGetAtomName(g_display, event->selection),
543 XGetAtomName(g_display, event->target),
544 XGetAtomName(g_display, event->property)));
550 res = XGetWindowProperty(g_display, g_wnd,
552 XMaxRequestSize(g_display), False, AnyPropertyType,
557 res = XGetWindowProperty(g_display, g_wnd,
559 XMaxRequestSize(g_display), False, AnyPropertyType,
575 XDeleteProperty(g_display, g_wnd, rdesktop_primary_timestamp_target_atom);
584 XDeleteProperty(g_display, g_wnd, rdesktop_clipboard_timestamp_target_atom);
596 XConvertSelection(g_display, primary_atom, targets_atom,
603 XConvertSelection(g_display, clipboard_atom, targets_atom,
619 res = XGetWindowProperty(g_display, g_wnd, rdesktop_clipboard_target_atom,
620 0, XMaxRequestSize(g_display), False, AnyPropertyType,
635 XGetWindowAttributes(g_display, g_wnd, &wa);
638 XSelectInput(g_display, g_wnd, (wa.your_event_mask | PropertyChangeMask));
661 XGetAtomName(g_display, supported_targets[i])));
710 XConvertSelection(g_display, event->selection, best_text_target,
732 clipboard_owner = XGetSelectionOwner(g_display, clipboard_atom);
735 primary_owner = XGetSelectionOwner(g_display, primary_atom);
793 XGetAtomName(g_display, event->selection),
794 XGetAtomName(g_display, event->target),
795 XGetAtomName(g_display, event->property)));
826 res = XGetWindowProperty(g_display, event->requestor,
910 (g_display, g_wnd, rdesktop_clipboard_target_atom, offset, 4096L,
921 XGetWindowAttributes(g_display, g_wnd, &wa);
922 XSelectInput(g_display, g_wnd,
950 XDeleteProperty(g_display, g_wnd, rdesktop_clipboard_target_atom);
955 (event->window == DefaultRootWindow(g_display)))
971 XSetSelectionOwner(g_display, primary_atom, g_wnd, acquire_time);
972 if (XGetSelectionOwner(g_display, primary_atom) != g_wnd)
975 XSetSelectionOwner(g_display, clipboard_atom, g_wnd, acquire_time);
976 if (XGetSelectionOwner(g_display, clipboard_atom) != g_wnd)
1057 DEBUG_CLIPBOARD(("ui_clip_handle_data: BUG! I don't know how to convert selection target %s!\n", XGetAtomName(g_display, selection_request.target)));
1096 XChangeProperty(g_display, g_wnd, rdesktop_clipboard_target_atom,
1099 XConvertSelection(g_display, primary_atom, rdesktop_native_atom,
1105 primary_owner = XGetSelectionOwner(g_display, primary_atom);
1109 clipboard_owner = XGetSelectionOwner(g_display, clipboard_atom);
1116 XConvertSelection(g_display, primary_atom, timestamp_atom,
1118 XConvertSelection(g_display, clipboard_atom, timestamp_atom,
1126 XConvertSelection(g_display, primary_atom, targets_atom,
1134 XConvertSelection(g_display, clipboard_atom, targets_atom,
1174 primary_atom = XInternAtom(g_display, "PRIMARY", False);
1175 clipboard_atom = XInternAtom(g_display, "CLIPBOARD", False);
1176 targets_atom = XInternAtom(g_display, "TARGETS", False);
1177 timestamp_atom = XInternAtom(g_display, "TIMESTAMP", False);
1179 XInternAtom(g_display, "_RDESKTOP_CLIPBOARD_TARGET", False);
1181 XInternAtom(g_display, "_RDESKTOP_PRIMARY_TIMESTAMP_TARGET", False);
1183 XInternAtom(g_display, "_RDESKTOP_CLIPBOARD_TIMESTAMP_TARGET", False);
1184 incr_atom = XInternAtom(g_display, "INCR", False);
1185 format_string_atom = XInternAtom(g_display, "STRING", False);
1186 format_utf8_string_atom = XInternAtom(g_display, "UTF8_STRING", False);
1187 format_unicode_atom = XInternAtom(g_display, "text/unicode", False);
1192 XInternAtom(g_display, "_RDESKTOP_SELECTION_NOTIFY", False);
1193 XSelectInput(g_display, DefaultRootWindow(g_display), PropertyChangeMask);
1196 rdesktop_native_atom = XInternAtom(g_display, "_RDESKTOP_NATIVE", False);
1198 XInternAtom(g_display, "_RDESKTOP_CLIPBOARD_FORMATS", False);
1199 rdesktop_primary_owner_atom = XInternAtom(g_display, "_RDESKTOP_PRIMARY_OWNER", False);
1200 rdesktop_clipboard_owner_atom = XInternAtom(g_display, "_RDESKTOP_CLIPBOARD_OWNER", False);
1218 if (XGetSelectionOwner(g_display, primary_atom) == g_wnd)
1219 XSetSelectionOwner(g_display, primary_atom, None, acquire_time);
1220 if (XGetSelectionOwner(g_display, clipboard_atom) == g_wnd)
1221 XSetSelectionOwner(g_display, clipboard_atom, None, acquire_time);