diff options
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r-- | src/WorkspaceCmd.cc | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc index e7d92ee..567d86e 100644 --- a/src/WorkspaceCmd.cc +++ b/src/WorkspaceCmd.cc | |||
@@ -92,28 +92,10 @@ void PrevWindowCmd::execute() { | |||
92 | screen->cycleFocus(m_option, &m_pat, true); | 92 | screen->cycleFocus(m_option, &m_pat, true); |
93 | } | 93 | } |
94 | 94 | ||
95 | void TypeAheadFocusCmd::execute() { | ||
96 | BScreen *screen = Fluxbox::instance()->keyScreen(); | ||
97 | if (screen != 0) { | ||
98 | FocusControl::Focusables *win_list = 0; | ||
99 | if (m_option & FocusControl::CYCLEGROUPS) { | ||
100 | win_list = (m_option & FocusControl::CYCLELINEAR) ? | ||
101 | &screen->focusControl().creationOrderWinList() : | ||
102 | &screen->focusControl().focusedOrderWinList(); | ||
103 | } else { | ||
104 | win_list = (m_option & FocusControl::CYCLELINEAR) ? | ||
105 | &screen->focusControl().creationOrderList() : | ||
106 | &screen->focusControl().focusedOrderList(); | ||
107 | } | ||
108 | |||
109 | screen->startTypeAheadFocus(*win_list, &m_pat); | ||
110 | } | ||
111 | } | ||
112 | |||
113 | void GoToWindowCmd::execute() { | 95 | void GoToWindowCmd::execute() { |
114 | BScreen *screen = Fluxbox::instance()->keyScreen(); | 96 | BScreen *screen = Fluxbox::instance()->keyScreen(); |
115 | if (screen != 0) { | 97 | if (screen != 0) { |
116 | FocusControl::Focusables *win_list = 0; | 98 | const FocusControl::Focusables *win_list = 0; |
117 | if (m_option & FocusControl::CYCLEGROUPS) { | 99 | if (m_option & FocusControl::CYCLEGROUPS) { |
118 | win_list = (m_option & FocusControl::CYCLELINEAR) ? | 100 | win_list = (m_option & FocusControl::CYCLELINEAR) ? |
119 | &screen->focusControl().creationOrderWinList() : | 101 | &screen->focusControl().creationOrderWinList() : |