summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FocusControl.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FocusControl.cc b/src/FocusControl.cc
index 03f1dc5..dafad30 100644
--- a/src/FocusControl.cc
+++ b/src/FocusControl.cc
@@ -163,7 +163,9 @@ void FocusControl::stopCyclingFocus() {
163 // in which case we'll do a proper revert focus 163 // in which case we'll do a proper revert focus
164 if (m_cycling_creation_order && m_cycling_window != m_creation_order_list.end()) 164 if (m_cycling_creation_order && m_cycling_window != m_creation_order_list.end())
165 m_cycling_window = find(m_focused_list.begin(),m_focused_list.end(),*m_cycling_window); 165 m_cycling_window = find(m_focused_list.begin(),m_focused_list.end(),*m_cycling_window);
166 if (m_cycling_window != m_focused_list.end() && m_cycling_window != m_creation_order_list.end()) { 166 if (m_cycling_window != m_focused_list.end() &&
167 m_cycling_window != m_creation_order_list.end() &&
168 (*m_cycling_window)->fbwindow()->isVisible()) {
167 WinClient *client = *m_cycling_window; 169 WinClient *client = *m_cycling_window;
168 m_focused_list.erase(m_cycling_window); 170 m_focused_list.erase(m_cycling_window);
169 m_focused_list.push_front(client); 171 m_focused_list.push_front(client);