Commit 9681d039 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Clipboard: fix debugging output

Correctly determine the Atom names from the real X server.
parent a41e23c0
...@@ -729,10 +729,16 @@ void nxagentRequestSelection(XEvent *X) ...@@ -729,10 +729,16 @@ void nxagentRequestSelection(XEvent *X)
int numTargets = sizeof(targets) / sizeof(targets[0]); int numTargets = sizeof(targets) / sizeof(targets[0]);
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "%s: available targets:\n", __func__); {
for (int i = 0; i < numTargets; i++) fprintf(stderr, "%s: Sending %d available targets:\n", __func__, numTargets);
fprintf(stderr, "%s: %s\n", __func__, NameForAtom(targets[i])); for (int i = 0; i < numTargets; i++)
fprintf(stderr, "\n"); {
char *s = XGetAtomName(nxagentDisplay, targets[i]);
fprintf(stderr, "%s: %ld %s\n", __func__, targets[i], s);
SAFE_XFree(s);
}
fprintf(stderr, "\n");
}
#endif #endif
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment