aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-07-17 06:48:47 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2016-07-30 13:10:20 (GMT)
commit2758485d356447fde88c20007e32cc006c1c6ef3 (patch)
tree7f349804a70813cd40722f6be01752628b80b291
parent34bf7d31c4f3997893cc76e3e5c78b2ccf91eecf (diff)
downloadfluxbox-2758485d356447fde88c20007e32cc006c1c6ef3.zip
fluxbox-2758485d356447fde88c20007e32cc006c1c6ef3.tar.bz2
do not lock focus against unfocusing.
Latter happens when eg. closing windows, including such with locked focus
-rw-r--r--src/FocusControl.cc2
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();