diff options
-rw-r--r-- | src/Screen.cc | 2 | ||||
-rw-r--r-- | src/Window.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index afbd90f..97ce70b 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -1345,7 +1345,7 @@ FluxboxWindow *BScreen::createWindow(Window client) { | |||
1345 | 1345 | ||
1346 | // add the window to the focus list | 1346 | // add the window to the focus list |
1347 | // always add to front on startup to keep the focus order the same | 1347 | // always add to front on startup to keep the focus order the same |
1348 | if (focusControl().focusNew() || Fluxbox::instance()->isStartup()) | 1348 | if (win->isFocused() || Fluxbox::instance()->isStartup()) |
1349 | focusControl().addFocusFront(*winclient); | 1349 | focusControl().addFocusFront(*winclient); |
1350 | else | 1350 | else |
1351 | focusControl().addFocusBack(*winclient); | 1351 | focusControl().addFocusBack(*winclient); |
diff --git a/src/Window.cc b/src/Window.cc index d16815c..a29ea77 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -283,7 +283,7 @@ FluxboxWindow::FluxboxWindow(WinClient &client, FbWinFrameTheme &tm, | |||
283 | 283 | ||
284 | // add the window to the focus list | 284 | // add the window to the focus list |
285 | // always add to front on startup to keep the focus order the same | 285 | // always add to front on startup to keep the focus order the same |
286 | if (screen().focusControl().focusNew() || Fluxbox::instance()->isStartup()) | 286 | if (m_focused || Fluxbox::instance()->isStartup()) |
287 | screen().focusControl().addFocusWinFront(*this); | 287 | screen().focusControl().addFocusWinFront(*this); |
288 | else | 288 | else |
289 | screen().focusControl().addFocusWinBack(*this); | 289 | screen().focusControl().addFocusWinBack(*this); |