summaryrefslogtreecommitdiff
path: root/src/FbCommandFactory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbCommandFactory.cc')
-rw-r--r--src/FbCommandFactory.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc
index ec91a86..f3c6f51 100644
--- a/src/FbCommandFactory.cc
+++ b/src/FbCommandFactory.cc
@@ -122,6 +122,9 @@ FbCommandFactory::FbCommandFactory() {
122 "stick", 122 "stick",
123 "stickwindow", 123 "stickwindow",
124 "tab", 124 "tab",
125 "taketoworkspace",
126 "taketonextworkspace",
127 "taketoprevworkspace",
125 "toggledecor", 128 "toggledecor",
126 "windowmenu", 129 "windowmenu",
127 "workspace", 130 "workspace",
@@ -279,6 +282,12 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command,
279 return new SendToNextWorkspaceCmd(atoi(arguments.c_str())); 282 return new SendToNextWorkspaceCmd(atoi(arguments.c_str()));
280 else if (command == "sendtoprevworkspace") 283 else if (command == "sendtoprevworkspace")
281 return new SendToPrevWorkspaceCmd(atoi(arguments.c_str())); 284 return new SendToPrevWorkspaceCmd(atoi(arguments.c_str()));
285 else if (command == "taketoworkspace")
286 return new TakeToWorkspaceCmd(atoi(arguments.c_str()) - 1);
287 else if (command == "taketonextworkspace")
288 return new TakeToNextWorkspaceCmd(atoi(arguments.c_str()));
289 else if (command == "taketoprevworkspace")
290 return new TakeToPrevWorkspaceCmd(atoi(arguments.c_str()));
282 else if (command == "killwindow" || command == "kill") 291 else if (command == "killwindow" || command == "kill")
283 return new KillWindowCmd(); 292 return new KillWindowCmd();
284 else if (command == "tab") { 293 else if (command == "tab") {