don't add new windows to front of focus list if they don't acquire the focus
Mark Tiefenbruck mark@fluxbox.org
2 files changed,
2 insertions(+),
2 deletions(-)
M
src/Screen.cc
→
src/Screen.cc
@@ -1345,7 +1345,7 @@ }
// add the window to the focus list // always add to front on startup to keep the focus order the same - if (focusControl().focusNew() || Fluxbox::instance()->isStartup()) + if (win->isFocused() || Fluxbox::instance()->isStartup()) focusControl().addFocusFront(*winclient); else focusControl().addFocusBack(*winclient);
M
src/Window.cc
→
src/Window.cc
@@ -283,7 +283,7 @@ return;
// add the window to the focus list // always add to front on startup to keep the focus order the same - if (screen().focusControl().focusNew() || Fluxbox::instance()->isStartup()) + if (m_focused || Fluxbox::instance()->isStartup()) screen().focusControl().addFocusWinFront(*this); else screen().focusControl().addFocusWinBack(*this);