Commit 46bd3340 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Clipboard.c: improve Clipboard stats

resolve lastClientClientPtr to process id and process name
parent b82f44e3
......@@ -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));
......
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