summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index fb47bc7..d69ce2d 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -183,6 +183,7 @@ int main(int argc, char **argv) {
183 string session_display(""); 183 string session_display("");
184 string rc_file; 184 string rc_file;
185 string log_filename; 185 string log_filename;
186 bool xsync = false;
186 187
187 FbTk::NLSInit("fluxbox.cat"); 188 FbTk::NLSInit("fluxbox.cat");
188 _FB_USES_NLS; 189 _FB_USES_NLS;
@@ -229,6 +230,8 @@ int main(int argc, char **argv) {
229 exit(EXIT_FAILURE); 230 exit(EXIT_FAILURE);
230 } 231 }
231 log_filename = argv[i]; 232 log_filename = argv[i];
233 } else if (arg == "-sync") {
234 xsync = true;
232 } else if (arg == "-help" || arg == "-h") { 235 } else if (arg == "-help" || arg == "-h") {
233 // print program usage and command line options 236 // print program usage and command line options
234 printf(_FB_CONSOLETEXT(main, Usage, 237 printf(_FB_CONSOLETEXT(main, Usage,
@@ -240,6 +243,7 @@ int main(int argc, char **argv) {
240 "-version\t\t\tdisplay version and exit.\n" 243 "-version\t\t\tdisplay version and exit.\n"
241 "-info\t\t\t\tdisplay some useful information.\n" 244 "-info\t\t\t\tdisplay some useful information.\n"
242 "-list-commands\t\t\tlist all valid key commands.\n" 245 "-list-commands\t\t\tlist all valid key commands.\n"
246 "-sync\t\t\t\tsynchronize with X server for debugging.\n"
243 "-log <filename>\t\t\tlog output to file.\n" 247 "-log <filename>\t\t\tlog output to file.\n"
244 "-help\t\t\t\tdisplay this help text and exit.\n\n", 248 "-help\t\t\t\tdisplay this help text and exit.\n\n",
245 249
@@ -286,7 +290,8 @@ int main(int argc, char **argv) {
286 290
287 try { 291 try {
288 292
289 fluxbox.reset(new Fluxbox(argc, argv, session_display.c_str(), rc_file.c_str())); 293 fluxbox.reset(new Fluxbox(argc, argv, session_display.c_str(),
294 rc_file.c_str(), xsync));
290 fluxbox->eventLoop(); 295 fluxbox->eventLoop();
291 296
292 exitcode = EXIT_SUCCESS; 297 exitcode = EXIT_SUCCESS;