From de9ac128956c08aef22e68306c4f3fdcfde0221d Mon Sep 17 00:00:00 2001 From: markt Date: Sat, 27 Jan 2007 22:11:22 +0000 Subject: another little fix --- src/FocusControl.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { // raise newly focused window to the top of the focused list // don't change the order if we're cycling or shutting down - if (!isCycling() && !m_screen.isShuttingdown() && !s_reverting) { + // don't change on startup, as it may add windows that aren't listed yet + if (!isCycling() && !m_screen.isShuttingdown() && !s_reverting && + !Fluxbox::instance()->isStartup()) { m_focused_list.remove(&win_client); m_focused_list.push_front(&win_client); m_cycling_window = m_focused_list.begin(); -- cgit v0.11.2