Lines Matching full:selection

1 /* x-selection.m -- proxies between NSPasteboard and X11 selections
31 #import "x-selection.h"
46 * case we take the PRIMARY selection, and set it as the NSPasteboard data.
307 * This should be called after a selection has been copied,
308 * or when the selection is unfinished before a transfer completes.
316 pending.selection = None;
401 /* This requests the TARGETS list from the PRIMARY selection owner. */
435 /* Set pbproxy as owner of the SELECTION_MANAGER selection.
451 "A clipboard manager using window 0x%lx already owns the clipboard selection. "
476 * This occurs when we previously owned a selection,
484 DebugF("e->selection %s\n", XGetAtomName(xpbproxy_dpy, e->selection));
486 if (e->selection == atoms->clipboard) {
497 else if (e->selection == atoms->clipboard_manager) {
562 reply->xselection.selection = e->selection;
584 * for a selection.
957 /* TODO We should also keep track of the time of the selection, and
1023 [self copy_completed:e->selection];
1029 ErrorF("e->selection %s\n", XGetAtomName(xpbproxy_dpy, e->selection));
1046 [self copy_completed:e->selection];
1053 pending.selection = e->selection;
1060 [self copy_completed:e->selection];
1064 /* We have the complete selection data.*/
1065 [self handle_selection:e->selection type:type propdata:&pdata];
1067 DebugF("handled selection with the first notify_event\n");
1096 [self copy_completed:pending.selection];
1106 [self handle_selection:pending.selection type:type propdata:&
1111 pending.selection = None;
1127 if (e->selection == atoms->primary && pbproxy_prefs.primary_on_grab)
1140 - (void) handle_targets: (Atom)selection propdata:(struct propdata *)pdata
1167 XConvertSelection(xpbproxy_dpy, selection, preferred, selection,
1171 /* This handles the image type of selection (typically in CLIPBOARD). */
1240 /* This handles the UTF8_STRING type of selection. */
1304 /* This is called when the selection is completely retrieved from another client. */
1306 - (void) handle_selection:(Atom)selection type:(Atom)type propdata:(struct
1317 [self copy_completed:selection];
1328 [self handle_targets:selection propdata:pdata];
1347 [self copy_completed:selection];
1350 - (void) copy_completed:(Atom)selection
1357 name = XGetAtomName(xpbproxy_dpy, selection);
1364 if (selection == atoms->primary && pending_copy > 0) {
1372 else if (selection == atoms->clipboard && pending_clipboard > 0) {
1510 pending.selection = None;