diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-09 17:58:16 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-09 17:58:16 +0000 |
| commit | 2aa0fcca736af2f90a90aa3909a48d7bd22537f4 (patch) | |
| tree | 7adf1f6ac3bcae52a94f0c41d3a380e919d4bcd9 /openbox | |
| parent | e31930141532207fcee7994b95924fe59c1b0ba0 (diff) | |
let you focus cycle to helper windows if there are only dialog windows around in its group (only normal type windows count as siblings for this case)
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/focus_cycle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/focus_cycle.c b/openbox/focus_cycle.c index 73141e33..ca299c67 100644 --- a/openbox/focus_cycle.c +++ b/openbox/focus_cycle.c @@ -85,7 +85,7 @@ static gboolean focus_target_has_siblings(ObClient *ft, for (it = ft->group->members; it; it = g_slist_next(it)) { ObClient *c = it->data; /* check that it's not a helper window to avoid infinite recursion */ - if (c != ft && !client_helper(c) && + if (c != ft && c->type == OB_CLIENT_TYPE_NORMAL && focus_cycle_target_valid(c, iconic_windows, all_desktops, FALSE, FALSE)) { @@ -127,7 +127,7 @@ gboolean focus_cycle_target_valid(ObClient *ft, ok = ok && ((client_normal(ft) && !client_helper(ft)) || - /* helper windows are valid targets it... */ + /* helper windows are valid targets if... */ (client_helper(ft) && /* ...a window in its group already has focus ... */ ((focus_client && ft->group == focus_client->group) || |
