From e85cf490355346d89f4f758d3193ed7199280793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Thu, 30 Jun 2016 21:10:21 +0200 Subject: 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 --- src/Window.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Window.cc b/src/Window.cc index 0aa4ec6..3c32d0e 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -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; } -- cgit v0.11.2