aboutsummaryrefslogtreecommitdiff
path: root/src/FocusControl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FocusControl.cc')
-rw-r--r--src/FocusControl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FocusControl.cc b/src/FocusControl.cc
index 19d0bf8..f469521 100644
--- a/src/FocusControl.cc
+++ b/src/FocusControl.cc
@@ -87,9 +87,9 @@ void FocusControl::cycleFocus(int opts, bool cycle_reverse) {
87 FocusedWindows *window_list = (opts & CYCLELINEAR) ? &m_creation_order_list : &m_focused_list; 87 FocusedWindows *window_list = (opts & CYCLELINEAR) ? &m_creation_order_list : &m_focused_list;
88 if (!m_cycling_focus) { 88 if (!m_cycling_focus) {
89 m_cycling_focus = true; 89 m_cycling_focus = true;
90 if ((opts & CYCLELINEAR) && m_cycling_window != m_focused_list.end()) { 90 if (opts & CYCLELINEAR) {
91 m_cycling_creation_order = true; 91 m_cycling_creation_order = true;
92 m_cycling_window = find(window_list->begin(),window_list->end(),*m_cycling_window); 92 m_cycling_window = find(window_list->begin(),window_list->end(),s_focused_window);
93 } else { 93 } else {
94 m_cycling_creation_order = (opts & CYCLELINEAR); 94 m_cycling_creation_order = (opts & CYCLELINEAR);
95 m_cycling_window = window_list->begin(); 95 m_cycling_window = window_list->begin();