From 2758485d356447fde88c20007e32cc006c1c6ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sun, 17 Jul 2016 08:48:47 +0200 Subject: do not lock focus against unfocusing. Latter happens when eg. closing windows, including such with locked focus --- src/FocusControl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FocusControl.cc b/src/FocusControl.cc index f60e9dd..736d81a 100644 --- a/src/FocusControl.cc +++ b/src/FocusControl.cc @@ -599,7 +599,7 @@ void FocusControl::setFocusedWindow(WinClient *client) { } } - if (client != expectingFocus() && s_focused_window && + if (client && client != expectingFocus() && s_focused_window && ((s_focused_fbwindow->focusProtection() & Focus::Lock) || (client && client->fbwindow() && (client->fbwindow()->focusProtection() & Focus::Deny)))) { s_focused_window->focus(); -- cgit v0.11.2