diff options
author | mathias <mathias> | 2004-12-21 16:09:36 (GMT) |
---|---|---|
committer | mathias <mathias> | 2004-12-21 16:09:36 (GMT) |
commit | 6dffafc39e4b11542705e2d4cd8477545967f5fc (patch) | |
tree | 0585d524794e3df62a34edef44aaf01a2830ca1f /src/FbCommandFactory.cc | |
parent | f3dfb80c405182573804e764357d1e615dd20792 (diff) | |
download | fluxbox_pavel-6dffafc39e4b11542705e2d4cd8477545967f5fc.zip fluxbox_pavel-6dffafc39e4b11542705e2d4cd8477545967f5fc.tar.bz2 |
* added new command:
sethead <int>
which sets the current window to head<int>
* added remembering of the head to apps-file:
[Head] {<int>}
Diffstat (limited to 'src/FbCommandFactory.cc')
-rw-r--r-- | src/FbCommandFactory.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc index a70e09b..d3e3757 100644 --- a/src/FbCommandFactory.cc +++ b/src/FbCommandFactory.cc | |||
@@ -118,6 +118,7 @@ FbCommandFactory::FbCommandFactory() { | |||
118 | "rootmenu", | 118 | "rootmenu", |
119 | "saverc", | 119 | "saverc", |
120 | "setenv", | 120 | "setenv", |
121 | "sethead", | ||
121 | "sendtoworkspace", | 122 | "sendtoworkspace", |
122 | "sendtonextworkspace", | 123 | "sendtonextworkspace", |
123 | "sendtoprevworkspace", | 124 | "sendtoprevworkspace", |
@@ -279,6 +280,8 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command, | |||
279 | return new CurrentWindowCmd(&FluxboxWindow::stick); | 280 | return new CurrentWindowCmd(&FluxboxWindow::stick); |
280 | else if (command == "toggledecor") | 281 | else if (command == "toggledecor") |
281 | return new CurrentWindowCmd(&FluxboxWindow::toggleDecoration); | 282 | return new CurrentWindowCmd(&FluxboxWindow::toggleDecoration); |
283 | else if (command == "sethead") | ||
284 | return new SetHeadCmd(atoi(arguments.c_str())); | ||
282 | else if (command == "sendtoworkspace") | 285 | else if (command == "sendtoworkspace") |
283 | return new SendToWorkspaceCmd(atoi(arguments.c_str()) - 1); // make 1-indexed to user | 286 | return new SendToWorkspaceCmd(atoi(arguments.c_str()) - 1); // make 1-indexed to user |
284 | else if (command == "sendtonextworkspace") | 287 | else if (command == "sendtonextworkspace") |