summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbCommandFactory.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc
index 72de740..ce024eb 100644
--- a/src/FbCommandFactory.cc
+++ b/src/FbCommandFactory.cc
@@ -65,9 +65,10 @@ static int getint(const char *str, int defaultvalue) {
65FbCommandFactory::FbCommandFactory() { 65FbCommandFactory::FbCommandFactory() {
66 // setup commands that we can handle 66 // setup commands that we can handle
67 const char* commands[] = { 67 const char* commands[] = {
68 "addworkspace", 68 "activate",
69 "addworkspace",
69 "arrangewindows", 70 "arrangewindows",
70 "attach", 71 "attach",
71 "bindkey", 72 "bindkey",
72 "clientmenu", 73 "clientmenu",
73 "close", 74 "close",
@@ -81,6 +82,7 @@ FbCommandFactory::FbCommandFactory() {
81 "execcommand", 82 "execcommand",
82 "execute", 83 "execute",
83 "exit", 84 "exit",
85 "focus",
84 "focusup", 86 "focusup",
85 "focusdown", 87 "focusdown",
86 "focusleft", 88 "focusleft",
@@ -124,7 +126,7 @@ FbCommandFactory::FbCommandFactory() {
124 "reconfig", 126 "reconfig",
125 "reconfigure", 127 "reconfigure",
126 "reloadstyle", 128 "reloadstyle",
127 "removelastworkspace", 129 "removelastworkspace",
128 "resizeto", 130 "resizeto",
129 "resize", 131 "resize",
130 "resizehorizontal", 132 "resizehorizontal",
@@ -419,6 +421,8 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command,
419 return new WindowListCmd(FbTk::RefCount<WindowHelperCmd>(new CurrentWindowCmd(&FluxboxWindow::lower)), arguments); 421 return new WindowListCmd(FbTk::RefCount<WindowHelperCmd>(new CurrentWindowCmd(&FluxboxWindow::lower)), arguments);
420 else if (command == "lowerlayer") 422 else if (command == "lowerlayer")
421 return new WindowListCmd(FbTk::RefCount<WindowHelperCmd>(new CurrentWindowCmd(&FluxboxWindow::lowerLayer)), arguments); 423 return new WindowListCmd(FbTk::RefCount<WindowHelperCmd>(new CurrentWindowCmd(&FluxboxWindow::lowerLayer)), arguments);
424 else if (command == "activate" || command == "focus")
425 return new WindowListCmd(FbTk::RefCount<WindowHelperCmd>(new CurrentWindowCmd((void (FluxboxWindow::*)())&FluxboxWindow::focus)), arguments);
422 else if (command == "close") 426 else if (command == "close")
423 return new WindowListCmd(FbTk::RefCount<WindowHelperCmd>(new CurrentWindowCmd(&FluxboxWindow::close)), arguments); 427 return new WindowListCmd(FbTk::RefCount<WindowHelperCmd>(new CurrentWindowCmd(&FluxboxWindow::close)), arguments);
424 else if (command == "closeallwindows") 428 else if (command == "closeallwindows")