fix tabbing of unfocusable clients

this affects all java clients, because java uses the retarded
WM_TAKE_FOCUS protocol, but also very important clients like xeyes ;-)

BUG: 1055
This commit is contained in:
Thomas Lübking 2016-06-30 21:10:21 +02:00 committed by Mathias Gumz
parent 2aba567ea6
commit e85cf49035

View file

@ -991,11 +991,14 @@ bool FluxboxWindow::setCurrentClient(WinClient &client, bool setinput) {
if (!button)
return false;
if (!client.acceptsFocus())
setinput = false; // don't try
WinClient *old = m_client;
m_client = &client;
bool ret = setinput && focus();
if (setinput) {
if (setinput && old->acceptsFocus()) {
m_client = old;
return ret;
}