all repos — fluxbox @ 99150507d8732b74ea3dda3b37f03d613005c9f1

custom fork of the fluxbox windowmanager

save resources
fluxgen fluxgen
commit

99150507d8732b74ea3dda3b37f03d613005c9f1

parent

0be34666de6568439c98ba88203b00c8be4a69d8

2 files changed, 12 insertions(+), 2 deletions(-)

jump to
M src/FbCommands.ccsrc/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.hhsrc/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(); };