aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-11-15 22:01:09 +0100
committerUlrich Sibiller <uli42@gmx.de>2019-11-15 22:03:32 +0100
commit9681d039c51af0971f8bd5daa775e5a5856899e7 (patch)
tree1c815c276b1d9802df0f257345ecc8a8f83b7003 /nx-X11
parenta41e23c062bc3401eb623d93c6589012244d7f6a (diff)
downloadnx-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.
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c14
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
/*