aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-07-17 20:52:00 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2016-07-30 13:10:21 (GMT)
commit87c0182ea5c44bfeee39e0a52604bab7058fe718 (patch)
treea5080510b35779dd5cfea95a2802a5defb0e15bf
parent635f14e5c9cfe5fff46bc71da0b657f8a94bfc8d (diff)
downloadfluxbox-87c0182ea5c44bfeee39e0a52604bab7058fe718.zip
fluxbox-87c0182ea5c44bfeee39e0a52604bab7058fe718.tar.bz2
Do not reset cycle focus when unsetting focus only
-rw-r--r--src/FocusControl.cc2
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