diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-07-04 23:57:34 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-07-05 13:02:37 +0200 |
commit | 84a403e2724ae9acac77bd1d819a9b1f4e56379a (patch) | |
tree | 591f81f8c936d9814b08659502e6f9bf054a239a /nx-X11/programs/Xserver/hw/nxagent/Display.c | |
parent | 000a869b3e994c6f5df62bdc6ee1bb4528403c9d (diff) | |
download | nx-libs-84a403e2724ae9acac77bd1d819a9b1f4e56379a.tar.gz nx-libs-84a403e2724ae9acac77bd1d819a9b1f4e56379a.tar.bz2 nx-libs-84a403e2724ae9acac77bd1d819a9b1f4e56379a.zip |
Report Xlib-side window IDs to session.log in machine readable form. This feature can be enabled by the cmdline options -reportwids and -reportprivatewids.
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Display.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Display.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Display.c b/nx-X11/programs/Xserver/hw/nxagent/Display.c index c764f50ae..4930baee2 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Display.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Display.c @@ -198,6 +198,7 @@ unsigned long startTime; */ extern void RejectWellKnownSockets(void); +extern Bool nxagentReportWindowIds; int nxagentServerOrder() { @@ -1334,8 +1335,12 @@ FIXME: Use of nxagentParentWindow is strongly deprecated. CopyFromParent, 0L, NULL); + if (nxagentReportWindowIds) { + fprintf(stderr, "NXAGENT_WINDOW_ID: CONFINEMENT_WINDOW,WID:[0x%x]\n", + nxagentConfineWindow); + } #ifdef TEST - fprintf(stderr, "nxagentOpenDisplay: Created agent's confine window with id [%ld].\n", + fprintf(stderr, "nxagentOpenDisplay: Created agent's confine window with id [0x%x].\n", nxagentConfineWindow); #endif @@ -2842,8 +2847,12 @@ Bool nxagentReconnectDisplay(void *p0) CopyFromParent, 0L, NULL); + if (nxagentReportWindowIds) { + fprintf(stderr, "NXAGENT_WINDOW_ID: CONFINEMENT_WINDOW,WID:[0x%x]\n", + nxagentConfineWindow); + } #ifdef TEST - fprintf(stderr, "nxagentReconnectDisplay: Created agent's confine window with id [%ld].\n", + fprintf(stderr, "nxagentReconnectDisplay: Created agent's confine window with id [0x%x].\n", nxagentConfineWindow); #endif |