aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2005-11-22 21:09:43 (GMT)
committerfluxgen <fluxgen>2005-11-22 21:09:43 (GMT)
commit1faef3ac2d5a22be465676ea0345df901f7cf8b6 (patch)
tree945a0cc4a236013fb0c44a457c1a1fb3873aa4c5
parentf7cfa81bbb1f488899905731f9b72a9cce7d8c83 (diff)
downloadfluxbox-1faef3ac2d5a22be465676ea0345df901f7cf8b6.zip
fluxbox-1faef3ac2d5a22be465676ea0345df901f7cf8b6.tar.bz2
nls for screen argument
-rw-r--r--src/fluxbox.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 9aff2ed..3781126 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -337,10 +337,11 @@ Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name, const char *rcfile
337 screens.push_back(i); 337 screens.push_back(i);
338 338
339 // find out, on what "screens" fluxbox should run 339 // find out, on what "screens" fluxbox should run
340 // FIXME(php-coder): maybe it worths moving this code to main.cc, where command line is parsed?
340 for (i = 1; i < m_argc; i++) { 341 for (i = 1; i < m_argc; i++) {
341 if (! strcmp(m_argv[i], "-screen")) { 342 if (! strcmp(m_argv[i], "-screen")) {
342 if ((++i) >= m_argc) { 343 if ((++i) >= m_argc) {
343 cerr<<"error, -screen requires argument\n"; 344 cerr << _FBTEXT(main, ScreenRequiresArg, "error, -screen requires argument", "the -screen option requires a file argument") << endl;
344 exit(1); 345 exit(1);
345 } 346 }
346 347