From 87c0182ea5c44bfeee39e0a52604bab7058fe718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sun, 17 Jul 2016 22:52:00 +0200 Subject: Do not reset cycle focus when unsetting focus only --- src/FocusControl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { return; BScreen *screen = client ? &client->screen() : 0; - if (screen && screen->focusControl().isCycling()) { + if (client && screen && screen->focusControl().isCycling()) { Focusable *next = screen->focusControl().m_cycling_next; if (next && next != client && screen->focusControl().m_cycling_list->contains(*next)) { // if we're currently cycling and the client tries to juggle around focus -- cgit v0.11.2