aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommandFactory.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-12-10 09:49:01 (GMT)
committerfluxgen <fluxgen>2004-12-10 09:49:01 (GMT)
commit6ba7744f65453a2705ba1bb88ce355c4cfde9276 (patch)
treef8ce7cf3fc2be0ab624edaa827ea73dab4ae436c /src/FbCommandFactory.cc
parentcc486c194f862bf0d8d8b3644c321446b0d3f051 (diff)
downloadfluxbox_pavel-6ba7744f65453a2705ba1bb88ce355c4cfde9276.zip
fluxbox_pavel-6ba7744f65453a2705ba1bb88ce355c4cfde9276.tar.bz2
Tab command, thanks Steeve Lennmark, steeve dot lennmark at mediasvar dot se
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);