aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommandFactory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbCommandFactory.cc')
-rw-r--r--src/FbCommandFactory.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc
index f1f7276..1382c89 100644
--- a/src/FbCommandFactory.cc
+++ b/src/FbCommandFactory.cc
@@ -60,6 +60,7 @@ static int getint(const char *str, int defaultvalue) {
60FbCommandFactory::FbCommandFactory() { 60FbCommandFactory::FbCommandFactory() {
61 // setup commands that we can handle 61 // setup commands that we can handle
62 const char* commands[] = { 62 const char* commands[] = {
63 "addworkspace",
63 "arrangewindows", 64 "arrangewindows",
64 "bindkey", 65 "bindkey",
65 "close", 66 "close",
@@ -115,6 +116,7 @@ FbCommandFactory::FbCommandFactory() {
115 "reconfig", 116 "reconfig",
116 "reconfigure", 117 "reconfigure",
117 "reloadstyle", 118 "reloadstyle",
119 "removelastworkspace",
118 "resizeto", 120 "resizeto",
119 "resize", 121 "resize",
120 "resizehorizontal", 122 "resizehorizontal",
@@ -232,6 +234,10 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command,
232 return new SetResourceValueCmd(name, value); 234 return new SetResourceValueCmd(name, value);
233 } else if (command == "setresourcevaluedialog") 235 } else if (command == "setresourcevaluedialog")
234 return new SetResourceValueDialogCmd(); 236 return new SetResourceValueDialogCmd();
237 else if (command == "addworkspace")
238 return new AddWorkspaceCmd();
239 else if (command == "removelastworkspace")
240 return new RemoveLastWorkspaceCmd();
235 // 241 //
236 // Current focused window commands 242 // Current focused window commands
237 // 243 //