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, 1 insertions, 4 deletions
diff --git a/openbox/focus.c b/openbox/focus.c
index 0d9ecf54..a7904910 100644
--- a/openbox/focus.c
+++ b/openbox/focus.c
@@ -162,11 +162,8 @@ void focus_fallback(ObFocusFallbackType type)
*/
focus_set_client(NULL);
- if (!(type == OB_FOCUS_FALLBACK_DESKTOP ?
- config_focus_last_on_desktop : config_focus_last)) {
- if (config_focus_follow) focus_under_pointer();
+ if (config_focus_follow && focus_under_pointer())
return;
- }
if (type == OB_FOCUS_FALLBACK_UNFOCUSING && old) {
/* try for transient relations */