diff options
author | rathnor <rathnor> | 2003-07-01 01:49:13 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-07-01 01:49:13 (GMT) |
commit | 015c61ede0661fe4e563052b4d8418ac6223e843 (patch) | |
tree | b5c5051cf3bd594ebbb9bb977ff09af308ea9b00 /src/FbCommandFactory.cc | |
parent | 17665c37f7a19cf21526bc1ff1654d26446956a2 (diff) | |
download | fluxbox_pavel-015c61ede0661fe4e563052b4d8418ac6223e843.zip fluxbox_pavel-015c61ede0661fe4e563052b4d8418ac6223e843.tar.bz2 |
make it work... (fix some small issues)
Diffstat (limited to 'src/FbCommandFactory.cc')
-rw-r--r-- | src/FbCommandFactory.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc index 8e26918..097c3cd 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.5 2003/06/30 22:21:33 fluxgen Exp $ | 23 | // $Id: FbCommandFactory.cc,v 1.6 2003/07/01 01:49:09 rathnor Exp $ |
24 | 24 | ||
25 | #include "FbCommandFactory.hh" | 25 | #include "FbCommandFactory.hh" |
26 | 26 | ||
@@ -153,10 +153,10 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command, | |||
153 | else if (command == "prevworkspace" && arguments.size() == 0) | 153 | else if (command == "prevworkspace" && arguments.size() == 0) |
154 | return new PrevWorkspaceCmd(); | 154 | return new PrevWorkspaceCmd(); |
155 | else if (command == "workspace") { | 155 | else if (command == "workspace") { |
156 | int num = 0; | 156 | int num = 1; // workspaces appear 1-indexed to the user |
157 | if (!arguments.empty()) | 157 | if (!arguments.empty()) |
158 | num = atoi(arguments.c_str()); | 158 | num = atoi(arguments.c_str()); |
159 | return new JumpToWorkspaceCmd(num); | 159 | return new JumpToWorkspaceCmd(num-1); |
160 | } else if (command == "nextwindow") | 160 | } else if (command == "nextwindow") |
161 | return new NextWindowCmd(atoi(arguments.c_str())); | 161 | return new NextWindowCmd(atoi(arguments.c_str())); |
162 | else if (command == "prevwindow") | 162 | else if (command == "prevwindow") |