diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-11-15 22:01:09 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2019-11-15 22:03:32 +0100 |
commit | 9681d039c51af0971f8bd5daa775e5a5856899e7 (patch) | |
tree | 1c815c276b1d9802df0f257345ecc8a8f83b7003 | |
parent | a41e23c062bc3401eb623d93c6589012244d7f6a (diff) | |
download | nx-libs-9681d039c51af0971f8bd5daa775e5a5856899e7.tar.gz nx-libs-9681d039c51af0971f8bd5daa775e5a5856899e7.tar.bz2 nx-libs-9681d039c51af0971f8bd5daa775e5a5856899e7.zip |
Clipboard: fix debugging output
Correctly determine the Atom names from the real X server.
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index b04ab88c2..85c4702b9 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -729,10 +729,16 @@ void nxagentRequestSelection(XEvent *X) int numTargets = sizeof(targets) / sizeof(targets[0]); #ifdef DEBUG - fprintf(stderr, "%s: available targets:\n", __func__); - for (int i = 0; i < numTargets; i++) - fprintf(stderr, "%s: %s\n", __func__, NameForAtom(targets[i])); - fprintf(stderr, "\n"); + { + fprintf(stderr, "%s: Sending %d available targets:\n", __func__, numTargets); + for (int i = 0; i < numTargets; i++) + { + char *s = XGetAtomName(nxagentDisplay, targets[i]); + fprintf(stderr, "%s: %ld %s\n", __func__, targets[i], s); + SAFE_XFree(s); + } + fprintf(stderr, "\n"); + } #endif /* |