diff options
author | markt <markt> | 2006-07-09 04:45:02 (GMT) |
---|---|---|
committer | markt <markt> | 2006-07-09 04:45:02 (GMT) |
commit | 8a640f8d638d1f330f816a2ed00931ba2d01847d (patch) | |
tree | 92e75171c47716a3a2b642c5298054ce8bc13a2b /src/Screen.cc | |
parent | f7574fe1c90118ca7421dffef0b035cb64cf78c1 (diff) | |
download | fluxbox_pavel-8a640f8d638d1f330f816a2ed00931ba2d01847d.zip fluxbox_pavel-8a640f8d638d1f330f816a2ed00931ba2d01847d.tar.bz2 |
setting focus the right way
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 4 |
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 | ||