diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-19 00:58:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-19 00:58:59 +0000 |
| commit | d647de97bec82fa6c229a4801908b847f631f031 (patch) | |
| tree | 5369ed520bc4836dafa245844b67946673eb1401 /src/openbox.cc | |
| parent | d8429b31b450c41973947eeec1f27af3b2807409 (diff) | |
add the new '-remote' option. let the dispatchEvents loop work in 'local' or 'remote' mode.
Diffstat (limited to 'src/openbox.cc')
| -rw-r--r-- | src/openbox.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/openbox.cc b/src/openbox.cc index 60db5d83..951d4ab4 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -95,6 +95,7 @@ Openbox::Openbox(int argc, char **argv) _focused_client = 0; _sync = false; _single = false; + _remote = false; parseCommandLine(argc, argv); @@ -274,6 +275,8 @@ void Openbox::parseCommandLine(int argc, char **argv) _sync = true; } else if (arg == "-single") { _single = true; + } else if (arg == "-remote") { + _remote = true; } else if (arg == "-version") { showVersion(); ::exit(0); @@ -305,7 +308,8 @@ void Openbox::showHelp() // print program usage and command line options printf(_("Usage: %s [OPTIONS...]\n\ Options:\n\ - -display <string> use display connection.\n\ + -remote optimize for a remote (low bandwidth) connection to the\n\ + display/Xserver.\n\ -single run on a single screen (default is to run every one).\n\ -rc <string> use alternate resource file.\n\ -menu <string> use alternate menu file.\n\ @@ -349,8 +353,10 @@ void Openbox::showHelp() void Openbox::eventLoop() { while (true) { - dispatchEvents(); // from otk::EventDispatcher - XFlush(**otk::display); // flush here before we go wait for timers + dispatchEvents(false); // from otk::EventDispatcher +// XFlush(**otk::display); // flush here before we go wait for timers + // .. the XPending() should have done this last + // already, it does a flush when it returns 0 // don't wait if we're to shutdown if (_shutdown) break; otk::Timer::dispatchTimers(!_sync); // wait if not in sync mode |
