X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Ffocus.c;h=6a56c2f819bccd72ca767e866e1fe6ee64a94bc4;hb=3039eb960c9e300a0aa4d9e90deda0a20b6af778;hp=4f598ec5e5061478c53ee0e8c064cb85b75234f4;hpb=48e3f64bc0a50ebf51d339787a0c7fb09c62c9cb;p=chaz%2Fopenbox diff --git a/openbox/focus.c b/openbox/focus.c index 4f598ec5..6a56c2f8 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -249,7 +249,8 @@ ObClient* focus_fallback_target(ObFocusFallbackType type) old = focus_client; - if (type == OB_FOCUS_FALLBACK_UNFOCUSING && old) { + if ((type == OB_FOCUS_FALLBACK_UNFOCUSING + || type == OB_FOCUS_FALLBACK_CLOSED) && old) { if (old->transient_for) { gboolean trans = FALSE; @@ -290,7 +291,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;