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 b319d78..95e8cde 100644 --- a/src/FocusControl.cc +++ b/src/FocusControl.cc | |||
@@ -589,7 +589,7 @@ void FocusControl::setFocusedWindow(WinClient *client) { | |||
589 | return; | 589 | return; |
590 | 590 | ||
591 | BScreen *screen = client ? &client->screen() : 0; | 591 | BScreen *screen = client ? &client->screen() : 0; |
592 | if (screen && screen->focusControl().isCycling()) { | 592 | if (client && screen && screen->focusControl().isCycling()) { |
593 | Focusable *next = screen->focusControl().m_cycling_next; | 593 | Focusable *next = screen->focusControl().m_cycling_next; |
594 | if (next && next != client && screen->focusControl().m_cycling_list->contains(*next)) { | 594 | if (next && next != client && screen->focusControl().m_cycling_list->contains(*next)) { |
595 | // if we're currently cycling and the client tries to juggle around focus | 595 | // if we're currently cycling and the client tries to juggle around focus |