aboutsummaryrefslogtreecommitdiff
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, 8 insertions, 1 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc
index 5c0794e..a70e09b 100644
--- a/src/FbCommandFactory.cc
+++ b/src/FbCommandFactory.cc
@@ -131,6 +131,7 @@ FbCommandFactory::FbCommandFactory() {
131 "showdesktop", 131 "showdesktop",
132 "stick", 132 "stick",
133 "stickwindow", 133 "stickwindow",
134 "tab",
134 "toggledecor", 135 "toggledecor",
135 "windowmenu", 136 "windowmenu",
136 "workspace", 137 "workspace",
@@ -286,7 +287,13 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command,
286 return new SendToPrevWorkspaceCmd(atoi(arguments.c_str())); 287 return new SendToPrevWorkspaceCmd(atoi(arguments.c_str()));
287 else if (command == "killwindow" || command == "kill") 288 else if (command == "killwindow" || command == "kill")
288 return new KillWindowCmd(); 289 return new KillWindowCmd();
289 else if (command == "nexttab") 290 else if (command == "tab") {
291 // XXX
292 int num = 1;
293 if (!arguments.empty())
294 num = atoi(arguments.c_str());
295 return new GoToTabCmd(num);
296 } else if (command == "nexttab")
290 return new CurrentWindowCmd(&FluxboxWindow::nextClient); 297 return new CurrentWindowCmd(&FluxboxWindow::nextClient);
291 else if (command == "prevtab") 298 else if (command == "prevtab")
292 return new CurrentWindowCmd(&FluxboxWindow::prevClient); 299 return new CurrentWindowCmd(&FluxboxWindow::prevClient);