make the Unfocus action do something when config_focus_follow is set

This commit is contained in:
Mikael Magnusson 2006-08-02 04:45:52 +00:00
parent ee778a8299
commit be8bc711b2

View file

@ -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;