aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Args.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-04 23:57:34 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-05 13:02:37 +0200
commit84a403e2724ae9acac77bd1d819a9b1f4e56379a (patch)
tree591f81f8c936d9814b08659502e6f9bf054a239a /nx-X11/programs/Xserver/hw/nxagent/Args.c
parent000a869b3e994c6f5df62bdc6ee1bb4528403c9d (diff)
downloadnx-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/Args.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Args.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Args.c b/nx-X11/programs/Xserver/hw/nxagent/Args.c
index 5d74f212c..5c908e80b 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Args.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Args.c
@@ -145,6 +145,8 @@ Bool nxagentUserDefaultDepth = False;
struct UserGeometry nxagentUserGeometry = {0, 0, 0, 0, 0};
Bool nxagentUserBorderWidth = False;
int nxagentNumScreens = 0;
+Bool nxagentReportWindowIds = False;
+Bool nxagentReportPrivateWindowIds = False;
Bool nxagentDoDirectColormaps = False;
Window nxagentParentWindow = 0;
Bool nxagentIpaq = False;
@@ -410,6 +412,16 @@ int ddxProcessArgument(int argc, char *argv[], int i)
return 1;
}
+ if (!strcmp(argv[i], "-reportwids")) {
+ nxagentReportWindowIds = True;
+ return 1;
+ }
+
+ if (!strcmp(argv[i], "-reportprivatewids")) {
+ nxagentReportPrivateWindowIds = True;
+ return 1;
+ }
+
if (!strcmp(argv[i], "-full")) {
nxagentFullGeneration = True;
return 1;