save resources
fluxgen fluxgen
2 files changed,
12 insertions(+),
2 deletions(-)
M
src/FbCommands.cc
→
src/FbCommands.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommands.cc,v 1.8 2003/06/11 10:50:58 rathnor Exp $ +// $Id: FbCommands.cc,v 1.9 2003/06/22 14:16:25 fluxgen Exp $ #include "FbCommands.hh" #include "fluxbox.hh"@@ -60,6 +60,10 @@ }
void ExitFluxboxCmd::execute() { Fluxbox::instance()->shutdown(); +} + +void SaveResources::execute() { + Fluxbox::instance()->save_rc(); } RestartFluxboxCmd::RestartFluxboxCmd(const std::string &cmd):m_cmd(cmd){
M
src/FbCommands.hh
→
src/FbCommands.hh
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommands.hh,v 1.5 2003/06/08 13:47:30 rathnor Exp $ +// $Id: FbCommands.hh,v 1.6 2003/06/22 14:16:25 fluxgen Exp $ // \file contains basic commands to restart, reconfigure, execute command and exit fluxbox@@ -44,6 +44,12 @@ };
/// exit fluxbox class ExitFluxboxCmd: public FbTk::Command { +public: + void execute(); +}; + +/// saves resources +class SaveResources: public FbTk::Command { public: void execute(); };