do not lock focus against unfocusing.
Latter happens when eg. closing windows, including such with locked focus
This commit is contained in:
parent
34bf7d31c4
commit
2758485d35
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue