From 33300e91e3b37ec437570580f0e75b1c58ecbdf8 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 2 May 2004 21:13:08 +0000 Subject: added exit command --- src/FbCommandFactory.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc index b578759..1a17be7 100644 --- a/src/FbCommandFactory.cc +++ b/src/FbCommandFactory.cc @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommandFactory.cc,v 1.30 2004/04/28 14:59:11 rathnor Exp $ +// $Id: FbCommandFactory.cc,v 1.31 2004/05/02 21:13:08 fluxgen Exp $ #include "FbCommandFactory.hh" @@ -69,6 +69,7 @@ FbCommandFactory::FbCommandFactory() { "exec", "execcommand", "execute", + "exit", "focusup", "focusdown", "focusleft", @@ -158,6 +159,8 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command, return new SaveResources(); else if (command == "execcommand" || command == "execute" || command == "exec") return new ExecuteCmd(arguments); // execute command on key screen + else if (command == "exit") + return new ExitFluxboxCmd(); else if (command == "quit") return new FbTk::SimpleCommand(*Fluxbox::instance(), &Fluxbox::shutdown); else if (command == "commanddialog") // run specified fluxbox command -- cgit v0.11.2