diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-11 16:07:32 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-11 16:07:32 +0000 |
| commit | 4c56b2de8d649764755036c1ff8c0618c22fb468 (patch) | |
| tree | fc45efa7209ab74b6bcc70038adc97a9d93c1e70 /openbox/focus.c | |
| parent | 51a4970f1a0bb09ed69cd95d219981d1b9efb119 (diff) | |
instead of falling back to any normal window. fallback to the same windows you can focus cycle to.
Diffstat (limited to 'openbox/focus.c')
| -rw-r--r-- | openbox/focus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index 303388be..6d66382a 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -126,7 +126,7 @@ static ObClient* focus_fallback_target(gboolean allow_refocus, 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 @@ static ObClient* focus_fallback_target(gboolean allow_refocus, 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)) { |
