fix detach focus again 8)

This commit is contained in:
markt 2006-07-09 06:51:28 +00:00
parent 8a640f8d63
commit 7a79953f04
2 changed files with 2 additions and 2 deletions

View file

@ -1413,8 +1413,9 @@ FluxboxWindow *BScreen::createWindow(WinClient &client) {
return 0;
}
// can't setInputFocus yet and mapNotifyEvent doesn't happen for the client
if (focusControl().focusNew() || FocusControl::focusedWindow() == &client)
win->setInputFocus();
FocusControl::setFocusedWindow(&client);
m_clientlist_sig.notify();

View file

@ -764,7 +764,6 @@ bool FluxboxWindow::detachClient(WinClient &client) {
// m_client must be valid as there should be at least one other window
// otherwise this wouldn't be here (refer numClients() <= 1 return)
client.setFluxboxWindow(screen().createWindow(client));
m_client->raise();
return true;
}