aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommandFactory.cc
diff options
context:
space:
mode:
authormathias <mathias>2005-06-15 09:48:46 (GMT)
committermathias <mathias>2005-06-15 09:48:46 (GMT)
commitcdc4338c6b7175e0c2654e42a01ae575722f4fd1 (patch)
tree3141c97a59c1213aeb8ab7a674dfba3512cf9311 /src/FbCommandFactory.cc
parentacaa58309364238371dec1c30d8fe5097843fd57 (diff)
downloadfluxbox-cdc4338c6b7175e0c2654e42a01ae575722f4fd1.zip
fluxbox-cdc4338c6b7175e0c2654e42a01ae575722f4fd1.tar.bz2
Fixes #1213003, SendToWorkspace shouldnt follow
SendToWorkspace and the rest are putting the window onto the new workspace silently, TakeToWorkspace warps to the new workspace with the window.
Diffstat (limited to 'src/FbCommandFactory.cc')
-rw-r--r--src/FbCommandFactory.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc
index ec91a86..f3c6f51 100644
--- a/src/FbCommandFactory.cc
+++ b/src/FbCommandFactory.cc
@@ -122,6 +122,9 @@ FbCommandFactory::FbCommandFactory() {
122 "stick", 122 "stick",
123 "stickwindow", 123 "stickwindow",
124 "tab", 124 "tab",
125 "taketoworkspace",
126 "taketonextworkspace",
127 "taketoprevworkspace",
125 "toggledecor", 128 "toggledecor",
126 "windowmenu", 129 "windowmenu",
127 "workspace", 130 "workspace",
@@ -279,6 +282,12 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command,
279 return new SendToNextWorkspaceCmd(atoi(arguments.c_str())); 282 return new SendToNextWorkspaceCmd(atoi(arguments.c_str()));
280 else if (command == "sendtoprevworkspace") 283 else if (command == "sendtoprevworkspace")
281 return new SendToPrevWorkspaceCmd(atoi(arguments.c_str())); 284 return new SendToPrevWorkspaceCmd(atoi(arguments.c_str()));
285 else if (command == "taketoworkspace")
286 return new TakeToWorkspaceCmd(atoi(arguments.c_str()) - 1);
287 else if (command == "taketonextworkspace")
288 return new TakeToNextWorkspaceCmd(atoi(arguments.c_str()));
289 else if (command == "taketoprevworkspace")
290 return new TakeToPrevWorkspaceCmd(atoi(arguments.c_str()));
282 else if (command == "killwindow" || command == "kill") 291 else if (command == "killwindow" || command == "kill")
283 return new KillWindowCmd(); 292 return new KillWindowCmd();
284 else if (command == "tab") { 293 else if (command == "tab") {