aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommandFactory.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-04-28 14:59:12 (GMT)
committerrathnor <rathnor>2004-04-28 14:59:12 (GMT)
commit4439b3f9b17e9c8bd9682ce967631f03249304bf (patch)
tree3e7fd160b6ba503359da09c5eec9b0f57d40e2f0 /src/FbCommandFactory.cc
parentbb779745f45c917099fde31c4cea8bb6d6bc6f7d (diff)
downloadfluxbox-4439b3f9b17e9c8bd9682ce967631f03249304bf.zip
fluxbox-4439b3f9b17e9c8bd9682ce967631f03249304bf.tar.bz2
fixes for/reimplement parts of directional focus movement
Diffstat (limited to 'src/FbCommandFactory.cc')
-rw-r--r--src/FbCommandFactory.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc
index 9853b50..b578759 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.29 2004/04/22 21:12:34 fluxgen Exp $ 23// $Id: FbCommandFactory.cc,v 1.30 2004/04/28 14:59:11 rathnor Exp $
24 24
25#include "FbCommandFactory.hh" 25#include "FbCommandFactory.hh"
26 26
@@ -69,6 +69,10 @@ FbCommandFactory::FbCommandFactory() {
69 "exec", 69 "exec",
70 "execcommand", 70 "execcommand",
71 "execute", 71 "execute",
72 "focusup",
73 "focusdown",
74 "focusleft",
75 "focusright",
72 "iconify", 76 "iconify",
73 "killwindow", 77 "killwindow",
74 "leftworkspace", 78 "leftworkspace",
@@ -276,6 +280,14 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command,
276 return new NextWindowCmd(atoi(arguments.c_str())); 280 return new NextWindowCmd(atoi(arguments.c_str()));
277 else if (command == "prevwindow") 281 else if (command == "prevwindow")
278 return new PrevWindowCmd(atoi(arguments.c_str())); 282 return new PrevWindowCmd(atoi(arguments.c_str()));
283 else if (command == "focusup")
284 return new DirFocusCmd(BScreen::FOCUSUP);
285 else if (command == "focusdown")
286 return new DirFocusCmd(BScreen::FOCUSDOWN);
287 else if (command == "focusleft")
288 return new DirFocusCmd(BScreen::FOCUSLEFT);
289 else if (command == "focusright")
290 return new DirFocusCmd(BScreen::FOCUSRIGHT);
279 else if (command == "nextgroup") 291 else if (command == "nextgroup")
280 return new NextWindowCmd(atoi(arguments.c_str()) ^ BScreen::CYCLEGROUPS); 292 return new NextWindowCmd(atoi(arguments.c_str()) ^ BScreen::CYCLEGROUPS);
281 else if (command == "prevgroup") 293 else if (command == "prevgroup")