all repos — fluxbox @ 34bf7d31c4f3997893cc76e3e5c78b2ccf91eecf

custom fork of the fluxbox windowmanager

prefer m_cycling_next over s_focused_window

as cycle start (former is where we wanted to go and X11 is still async)
Thomas Lübking thomas.luebking@gmail.com
commit

34bf7d31c4f3997893cc76e3e5c78b2ccf91eecf

parent

4bc08709f196e513914e453e2a1117c0823d0a41

1 files changed, 6 insertions(+), 1 deletions(-)

jump to
M src/FocusControl.ccsrc/FocusControl.cc

@@ -110,7 +110,11 @@ Focusables::const_iterator it_begin = window_list.clientList().begin();

Focusables::const_iterator it_end = window_list.clientList().end(); // too many things can go wrong with remembering this - m_cycling_window = find(it_begin, it_end, s_focused_window); + m_cycling_window = it_end; + if (m_cycling_next) + m_cycling_window = find(it_begin, it_end, m_cycling_next); + if (m_cycling_window == it_end) + m_cycling_window = find(it_begin, it_end, s_focused_window); if (m_cycling_window == it_end) m_cycling_window = find(it_begin, it_end, s_focused_fbwindow);

@@ -144,6 +148,7 @@

// now we actually try to focus the window if (!doSkipWindow(**it, pat) && (m_cycling_next = *it) && (*it)->focus()) break; + m_cycling_next = 0; } m_cycling_window = it;