diff options
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; } }; } |
