diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-03 00:06:46 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-03 00:06:46 +0000 |
| commit | e2069b5792a80ba8ccfd03c9d1bdd5e364dbee10 (patch) | |
| tree | b706764c5e96de7057c2ec9a30657862564aec0f /src/openbox.hh | |
| parent | 96a949ec1f2be9da216e4d228992d1ce6855a6d4 (diff) | |
move the restart into main.cc, so the openbox class can clean up properly before the restart
Diffstat (limited to 'src/openbox.hh')
| -rw-r--r-- | src/openbox.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/openbox.hh b/src/openbox.hh index bdd4272d..8145531f 100644 --- a/src/openbox.hh +++ b/src/openbox.hh @@ -228,6 +228,13 @@ public: inline void restart(const std::string &bin = "") { _shutdown = true; _restart = true; _restart_prog = bin; } + + //! True if Openbox should be restarted instead of exiting + inline bool doRestart() const { return _restart; } + + //! The command line requested to be executed in place of restarting + //! Openbox the way it was run previously. + inline const std::string &restartProgram() const { return _restart_prog; } }; } |
