aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index d0accfc..c0d0706 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1375,8 +1375,6 @@ FluxboxWindow *BScreen::createWindow(Window client) {
1375 // always put on end of focused list, if it gets focused it'll get pushed up 1375 // always put on end of focused list, if it gets focused it'll get pushed up
1376 // there is only the one win client at this stage 1376 // there is only the one win client at this stage
1377 focusControl().addFocusBack(*winclient); 1377 focusControl().addFocusBack(*winclient);
1378 if (focusControl().focusNew())
1379 FocusControl::setFocusedWindow(winclient);
1380 1378
1381 // we also need to check if another window expects this window to the left 1379 // we also need to check if another window expects this window to the left
1382 // and if so, then join it. 1380 // and if so, then join it.
@@ -1416,7 +1414,7 @@ FluxboxWindow *BScreen::createWindow(WinClient &client) {
1416 } 1414 }
1417 1415
1418 if (focusControl().focusNew() || FocusControl::focusedWindow() == &client) 1416 if (focusControl().focusNew() || FocusControl::focusedWindow() == &client)
1419 FocusControl::setFocusedWindow(&client); 1417 win->setInputFocus();
1420 1418
1421 m_clientlist_sig.notify(); 1419 m_clientlist_sig.notify();
1422 1420