do not lock focus against unfocusing.

Latter happens when eg. closing windows, including such with
locked focus
This commit is contained in:
Thomas Lübking 2016-07-17 08:48:47 +02:00
parent 34bf7d31c4
commit 2758485d35

View file

@ -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();