summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
Diffstat (limited to 'openbox')
-rw-r--r--openbox/focus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/focus.c b/openbox/focus.c
index 817640ff..f06a077e 100644
--- a/openbox/focus.c
+++ b/openbox/focus.c
@@ -234,7 +234,7 @@ ObClient* focus_fallback_target(gboolean allow_refocus, ObClient *old)
#endif
ob_debug("trying omnipresentness\n");
- if (old && old->desktop == DESKTOP_ALL)
+ if (allow_refocus && old && old->desktop == DESKTOP_ALL)
return old;