diff options
-rw-r--r-- | src/FocusControl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
599 | } | 599 | } |
600 | } | 600 | } |
601 | 601 | ||
602 | if (client != expectingFocus() && s_focused_window && | 602 | if (client && client != expectingFocus() && s_focused_window && |
603 | ((s_focused_fbwindow->focusProtection() & Focus::Lock) || | 603 | ((s_focused_fbwindow->focusProtection() & Focus::Lock) || |
604 | (client && client->fbwindow() && (client->fbwindow()->focusProtection() & Focus::Deny)))) { | 604 | (client && client->fbwindow() && (client->fbwindow()->focusProtection() & Focus::Deny)))) { |
605 | s_focused_window->focus(); | 605 | s_focused_window->focus(); |