diff options
author | markt <markt> | 2007-03-24 16:31:13 (GMT) |
---|---|---|
committer | markt <markt> | 2007-03-24 16:31:13 (GMT) |
commit | 1829dd5780c9cd818884cb84ae1ea51a4d4d35ca (patch) | |
tree | affbf9ced07d3c52c04dd49a81e14be117326360 /src/FbCommandFactory.cc | |
parent | 5c811e63012f160b5e60a38deca10d01b5d23e69 (diff) | |
download | fluxbox-1829dd5780c9cd818884cb84ae1ea51a4d4d35ca.zip fluxbox-1829dd5780c9cd818884cb84ae1ea51a4d4d35ca.tar.bz2 |
colossal multi-patch, encompassing all of what I did yesterday without internet access
Diffstat (limited to 'src/FbCommandFactory.cc')
-rw-r--r-- | src/FbCommandFactory.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc index bd20c39..378a2b8 100644 --- a/src/FbCommandFactory.cc +++ b/src/FbCommandFactory.cc | |||
@@ -78,6 +78,7 @@ FbCommandFactory::FbCommandFactory() { | |||
78 | "focusleft", | 78 | "focusleft", |
79 | "focusright", | 79 | "focusright", |
80 | "fullscreen", | 80 | "fullscreen", |
81 | "gotowindow", | ||
81 | "hidemenus", | 82 | "hidemenus", |
82 | "iconify", | 83 | "iconify", |
83 | "keymode", | 84 | "keymode", |
@@ -422,7 +423,12 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command, | |||
422 | return new PrevWindowCmd(atoi(arguments.c_str())); | 423 | return new PrevWindowCmd(atoi(arguments.c_str())); |
423 | else if (command == "typeaheadfocus") | 424 | else if (command == "typeaheadfocus") |
424 | return new TypeAheadFocusCmd(atoi(arguments.c_str())); | 425 | return new TypeAheadFocusCmd(atoi(arguments.c_str())); |
425 | else if (command == "focusup") | 426 | else if (command == "gotowindow") { |
427 | FbTk_istringstream is(arguments.c_str()); | ||
428 | int num = 0, options = 0; | ||
429 | is >> num >> options; | ||
430 | return new GoToWindowCmd(num, options); | ||
431 | } else if (command == "focusup") | ||
426 | return new DirFocusCmd(FocusControl::FOCUSUP); | 432 | return new DirFocusCmd(FocusControl::FOCUSUP); |
427 | else if (command == "focusdown") | 433 | else if (command == "focusdown") |
428 | return new DirFocusCmd(FocusControl::FOCUSDOWN); | 434 | return new DirFocusCmd(FocusControl::FOCUSDOWN); |