aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-02-14 21:29:32 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-05-31 12:52:35 +0200
commit46bd33402820a3be60e74f0f246081798b32f8e8 (patch)
tree9529444902bf24a331a41337ce463426f1824df1
parentb82f44e3565b6670e816f4081076596d0ea0236b (diff)
downloadnx-libs-46bd33402820a3be60e74f0f246081798b32f8e8.tar.gz
nx-libs-46bd33402820a3be60e74f0f246081798b32f8e8.tar.bz2
nx-libs-46bd33402820a3be60e74f0f246081798b32f8e8.zip
Clipboard.c: improve Clipboard stats
resolve lastClientClientPtr to process id and process name
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 990c175a0..492b74295 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -349,7 +349,17 @@ void nxagentDumpClipboardStat(void)
fprintf(stderr, " lastClientWindowPtr (WindowPtr) [%p] ([0x%x])\n", (void *)lastClientWindowPtr, WINDOWID(lastClientWindowPtr));
else
fprintf(stderr, " lastClientWindowPtr (WindowPtr) -\n");
- fprintf(stderr, " lastClientClientPtr (ClientPtr) [%p]\n", (void *)lastClientClientPtr);
+#ifdef CLIENTIDS
+ fprintf(stderr, " lastClientClientPtr (ClientPtr) [%p] index [%d] PID [%d] Cmd [%s]\n",
+ (void *)lastClientClientPtr,
+ CLINDEX(lastClientClientPtr),
+ GetClientPid(lastClientClientPtr),
+ GetClientCmdName(lastClientClientPtr));
+#else
+ fprintf(stderr, " lastClientClientPtr (ClientPtr) [%p] index [%d]\n",
+ (void *)lastClientClientPtr,
+ CLINDEX(lastClientClientPtr))
+#endif
fprintf(stderr, " lastClientRequestor (Window) [0x%x]\n", lastClientRequestor);
fprintf(stderr, " lastClientProperty (Atom) [% 4d][%s]\n", lastClientProperty, NameForAtom(lastClientProperty));
fprintf(stderr, " lastClientSelection (Atom) [% 4d][%s]\n", lastClientSelection, NameForAtom(lastClientSelection));