From e2069b5792a80ba8ccfd03c9d1bdd5e364dbee10 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 3 Feb 2003 00:06:46 +0000 Subject: move the restart into main.cc, so the openbox class can clean up properly before the restart --- src/openbox.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/openbox.hh') 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; } }; } -- cgit v1.2.3