diff --git a/src/Window.cc b/src/Window.cc index faf9dfc5..d4e79b15 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -1986,9 +1986,11 @@ void FluxboxWindow::setFocusFlag(bool focus) { m_focussig.notify(); if (m_client) m_client->focusSig().notify(); + WinClient *old = WindowCmd::client(); WindowCmd::setClient(m_client); Fluxbox::instance()->keys()->doAction(focus ? FocusIn : FocusOut, 0, 0, Keys::ON_WINDOW); + WindowCmd::setClient(old); } }