RevertToParent instead of RevertToPointerRoot on window close,

as sometimes keys would go to the window under the mouse before a new window was focused
This commit is contained in:
markt 2007-11-04 23:27:51 +00:00
parent 4c72b13a88
commit 2c4e1f9a02

View file

@ -1355,10 +1355,9 @@ bool FluxboxWindow::focus() {
bool ret = false;
if (m_client->getFocusMode() == WinClient::F_LOCALLYACTIVE ||
m_client->getFocusMode() == WinClient::F_PASSIVE) {
if (m_client->acceptsFocus()) {
m_client->setInputFocus(RevertToPointerRoot, CurrentTime);
m_client->setInputFocus(RevertToParent, CurrentTime);
FbTk::App *app = FbTk::App::instance();