diff options
Diffstat (limited to 'src/FbCommandFactory.cc')
-rw-r--r-- | src/FbCommandFactory.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc index 097c3cd..c4bacae 100644 --- a/src/FbCommandFactory.cc +++ b/src/FbCommandFactory.cc | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: FbCommandFactory.cc,v 1.6 2003/07/01 01:49:09 rathnor Exp $ | 23 | // $Id: FbCommandFactory.cc,v 1.7 2003/07/01 09:47:39 fluxgen Exp $ |
24 | 24 | ||
25 | #include "FbCommandFactory.hh" | 25 | #include "FbCommandFactory.hh" |
26 | 26 | ||
@@ -37,7 +37,7 @@ FbCommandFactory FbCommandFactory::s_autoreg; | |||
37 | 37 | ||
38 | FbCommandFactory::FbCommandFactory() { | 38 | FbCommandFactory::FbCommandFactory() { |
39 | // setup commands that we can handle | 39 | // setup commands that we can handle |
40 | const char commands[][25] = { | 40 | const char commands[][30] = { |
41 | "setstyle", | 41 | "setstyle", |
42 | "saverc", | 42 | "saverc", |
43 | "reconfigure", | 43 | "reconfigure", |
@@ -69,6 +69,8 @@ FbCommandFactory::FbCommandFactory() { | |||
69 | "prevtab", | 69 | "prevtab", |
70 | "detachclient", | 70 | "detachclient", |
71 | "nextworkspace", | 71 | "nextworkspace", |
72 | "rightworkspace", | ||
73 | "leftworkspace", | ||
72 | "prevworkspace", | 74 | "prevworkspace", |
73 | "workspace", | 75 | "workspace", |
74 | "nextwindow", | 76 | "nextwindow", |
@@ -107,7 +109,7 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command, | |||
107 | // | 109 | // |
108 | // Current focused window commands | 110 | // Current focused window commands |
109 | // | 111 | // |
110 | else if (command == "minimizewindow" || command == "mimimize" || command == "iconify") | 112 | else if (command == "minimizewindow" || command == "minimize" || command == "iconify") |
111 | return new CurrentWindowCmd(&FluxboxWindow::iconify); | 113 | return new CurrentWindowCmd(&FluxboxWindow::iconify); |
112 | else if (command == "maximizewindow" || command == "maximize") | 114 | else if (command == "maximizewindow" || command == "maximize") |
113 | return new CurrentWindowCmd(&FluxboxWindow::maximize); | 115 | return new CurrentWindowCmd(&FluxboxWindow::maximize); |
@@ -152,6 +154,10 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command, | |||
152 | return new NextWorkspaceCmd(); | 154 | return new NextWorkspaceCmd(); |
153 | else if (command == "prevworkspace" && arguments.size() == 0) | 155 | else if (command == "prevworkspace" && arguments.size() == 0) |
154 | return new PrevWorkspaceCmd(); | 156 | return new PrevWorkspaceCmd(); |
157 | else if (command == "rightworkspace") | ||
158 | return new RightWorkspaceCmd(atoi(arguments.c_str())); | ||
159 | else if (command == "leftworkspace") | ||
160 | return new LeftWorkspaceCmd(atoi(arguments.c_str())); | ||
155 | else if (command == "workspace") { | 161 | else if (command == "workspace") { |
156 | int num = 1; // workspaces appear 1-indexed to the user | 162 | int num = 1; // workspaces appear 1-indexed to the user |
157 | if (!arguments.empty()) | 163 | if (!arguments.empty()) |