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
Thomas Lübking thomas.luebking@gmail.com
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
src/Window.cc
→
src/Window.cc
@@ -991,11 +991,14 @@ // in case the window is being destroyed, but this should never happen
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; }