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:
parent
2aba567ea6
commit
e85cf49035
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue