Commit 3dba58aa authored by dscho's avatar dscho

added cmd line parameters

parent be8ad3e4
......@@ -150,7 +150,14 @@ int main(int argc,char** argv)
}
} else if(strcmp(argv[i],"-noshm")==0) {
useSHM = FALSE;
} else if(strcmp(argv[i],"-runforever")==0) {
disconnectAfterFirstClient = FALSE;
} else if(i<argc-1 && strcmp(argv[i],"-wait4client")==0) {
maxMsecsToConnect = atoi(argv[i+1]);
} else if(i<argc-1 && strcmp(argv[i],"-update")==0) {
updateCounter = atoi(argv[i+1]);
}
if(dpy==0)
dpy = XOpenDisplay("");
xscreen = DefaultScreen(dpy);
......
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