summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FocusControl.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FocusControl.cc b/src/FocusControl.cc
index 29a1b8b..15fa0fc 100644
--- a/src/FocusControl.cc
+++ b/src/FocusControl.cc
@@ -249,7 +249,9 @@ void FocusControl::setScreenFocusedWindow(WinClient &win_client) {
249 249
250 // raise newly focused window to the top of the focused list 250 // raise newly focused window to the top of the focused list
251 // don't change the order if we're cycling or shutting down 251 // don't change the order if we're cycling or shutting down
252 if (!isCycling() && !m_screen.isShuttingdown() && !s_reverting) { 252 // don't change on startup, as it may add windows that aren't listed yet
253 if (!isCycling() && !m_screen.isShuttingdown() && !s_reverting &&
254 !Fluxbox::instance()->isStartup()) {
253 m_focused_list.remove(&win_client); 255 m_focused_list.remove(&win_client);
254 m_focused_list.push_front(&win_client); 256 m_focused_list.push_front(&win_client);
255 m_cycling_window = m_focused_list.begin(); 257 m_cycling_window = m_focused_list.begin();