summaryrefslogtreecommitdiff
path: root/openbox/focus.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/focus.c')
-rw-r--r--openbox/focus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/focus.c b/openbox/focus.c
index 22036917..541cf010 100644
--- a/openbox/focus.c
+++ b/openbox/focus.c
@@ -167,8 +167,9 @@ void focus_fallback(ObFocusFallbackType type)
*/
focus_set_client(NULL);
- if (config_focus_follow && focus_under_pointer())
- return;
+ if (!config_focus_last && config_focus_follow)
+ if (focus_under_pointer())
+ return;
if (type == OB_FOCUS_FALLBACK_UNFOCUSING && old) {
/* try for transient relations */