diff options
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r-- | src/WorkspaceCmd.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc index 0cbf5b9..f92418f 100644 --- a/src/WorkspaceCmd.cc +++ b/src/WorkspaceCmd.cc | |||
@@ -53,6 +53,20 @@ void PrevWindowCmd::execute() { | |||
53 | screen->cycleFocus(m_option, true); | 53 | screen->cycleFocus(m_option, true); |
54 | } | 54 | } |
55 | 55 | ||
56 | void TypeAheadFocusCmd::execute() { | ||
57 | Fluxbox *fb = Fluxbox::instance(); | ||
58 | BScreen *screen = fb->keyScreen(); | ||
59 | if (screen != 0) { | ||
60 | int options = m_option; | ||
61 | FocusControl::FocusedWindows *win_list = | ||
62 | (options & FocusControl::CYCLELINEAR) ? | ||
63 | &screen->focusControl().creationOrderList() : | ||
64 | &screen->focusControl().focusedOrderList(); | ||
65 | |||
66 | screen->startTypeAheadFocus(*win_list, m_option); | ||
67 | } | ||
68 | } | ||
69 | |||
56 | void DirFocusCmd::execute() { | 70 | void DirFocusCmd::execute() { |
57 | BScreen *screen = Fluxbox::instance()->keyScreen(); | 71 | BScreen *screen = Fluxbox::instance()->keyScreen(); |
58 | if (screen == 0) | 72 | if (screen == 0) |