instead of falling back to any normal window. fallback to the same windows you can focus cycle to.
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
openbox/focus.c
→
openbox/focus.c
@@ -126,7 +126,7 @@ a splashscreen or a desktop window (save the desktop as a
backup fallback though) */ if ((allow_omnipresent || c->desktop == screen_desktop) && - client_normal(c) && + focus_cycle_target_valid(c, FALSE, FALSE, FALSE, FALSE) && (allow_refocus || client_focus_target(c) != old) && client_focus(c)) {@@ -145,7 +145,7 @@ 2. it is a normal type window, don't fall back onto a dock or
a splashscreen or a desktop window (save the desktop as a backup fallback though) */ - if (c->type == OB_CLIENT_TYPE_DESKTOP && + if (focus_cycle_target_valid(c, FALSE, FALSE, FALSE, TRUE) && (allow_refocus || client_focus_target(c) != old) && client_focus(c)) {