MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / do_SelectionNotify

Function do_SelectionNotify

cpp/linux-specific/print_events.h:483–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483static void
484do_SelectionNotify (FILE* out_f, XEvent *eventp, Display* dpy)
485{
486 XSelectionEvent *e = (XSelectionEvent *) eventp;
487 char *sname = NULL;
488 char *tname = NULL;
489 char *pname = NULL;
490
491 if (dpy != NULL) {
492 sname = XGetAtomName (dpy, e->selection);
493 tname = XGetAtomName (dpy, e->target);
494 pname = XGetAtomName (dpy, e->property);
495 }
496
497 fprintf(out_f," selection 0x%lx (%s), target 0x%lx (%s),\n",
498 e->selection, sname ? sname : Unknown, e->target,
499 tname ? tname : Unknown);
500 fprintf(out_f," property 0x%lx (%s), time %lu\n",
501 e->property, pname ? pname : Unknown, e->time);
502
503 if (sname) XFree (sname);
504 if (tname) XFree (tname);
505 if (pname) XFree (pname);
506}
507
508static void
509do_ColormapNotify (FILE* out_f, XEvent *eventp)

Callers 1

print_eventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected