diff options
author | rathnor <rathnor> | 2004-04-28 14:59:12 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2004-04-28 14:59:12 (GMT) |
commit | 4439b3f9b17e9c8bd9682ce967631f03249304bf (patch) | |
tree | 3e7fd160b6ba503359da09c5eec9b0f57d40e2f0 /src/FbCommandFactory.cc | |
parent | bb779745f45c917099fde31c4cea8bb6d6bc6f7d (diff) | |
download | fluxbox-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.cc | 14 |
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") |