aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-10-24 17:09:26 (GMT)
committermarkt <markt>2007-10-24 17:09:26 (GMT)
commitf3afe787c1209cf1357493924a4f7eb7864def54 (patch)
treed0c0c3eca154ab538fbc1fb3c62081e9250c05bd /src/WorkspaceCmd.cc
parent74eb584a312aba21b21eccb6c49ade1571aa3740 (diff)
downloadfluxbox_pavel-f3afe787c1209cf1357493924a4f7eb7864def54.zip
fluxbox_pavel-f3afe787c1209cf1357493924a4f7eb7864def54.tar.bz2
introduced workspacename for ClientPattern, and some miscellaneous cleanup
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r--src/WorkspaceCmd.cc20
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
95void 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
113void GoToWindowCmd::execute() { 95void 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() :