summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2006-08-02 04:45:52 +0000
committerMikael Magnusson <mikachu@comhem.se>2006-08-02 04:45:52 +0000
commitbe8bc711b2dd61e3171058135e18d1baa39be640 (patch)
tree97216ee3f99a50335d078d14330a56760072d206
parentee778a8299e98a5f6d3bae67eae0528db618858d (diff)
make the Unfocus action do something when config_focus_follow is set
-rw-r--r--openbox/focus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbox/focus.c b/openbox/focus.c
index 4f598ec5..07df3a56 100644
--- a/openbox/focus.c
+++ b/openbox/focus.c
@@ -290,7 +290,9 @@ ObClient* focus_fallback_target(ObFocusFallbackType type)
}
}
- if (config_focus_follow && !config_focus_last) {
+ if (config_focus_follow &&
+ (type == OB_FOCUS_FALLBACK_UNFOCUSING || !config_focus_last))
+ {
if ((target = client_under_pointer()))
if (client_normal(target) && client_can_focus(target))
return target;