X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fopenbox.hh;h=8145531fc4e64abb36105f8b78985947fab5b1c1;hb=7c32ac2b3f0bfd02a1efea1d67e5ad1c3c5be93f;hp=bdd4272d0b10446bb3312510ae7d5ad5ba28269c;hpb=76896e9aa577bd528a7b9ed6be66332c2c6a934a;p=chaz%2Fopenbox 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; } }; }