diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-25 06:41:17 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-25 06:41:17 +0000 |
| commit | 710f41e622b76dd03e9f43bd76a63eeb3070e63c (patch) | |
| tree | 8bf4f2875889d3230b5e0ee747553e5b324f6827 /openbox/client.c | |
| parent | ec59af2f99935c23c73c59a569b01ddf32da613a (diff) | |
focus nwe transients when another window in their transient tree is focused
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c index 4a553224..0952909c 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -277,7 +277,8 @@ void client_manage(Window window) client_restore_session_stacking(self); /* focus the new window? */ - if (ob_state() != OB_STATE_STARTING && config_focus_new && + if (ob_state() != OB_STATE_STARTING && + (config_focus_new || client_search_focus_tree_full(self)) && /* note the check against Type_Normal/Dialog, not client_normal(self), which would also include other types. in this case we want more strict rules for focus */ @@ -3031,9 +3032,8 @@ int client_directional_edge_search(ObClient *c, ObDirection dir) case OB_DIRECTION_NORTHWEST: case OB_DIRECTION_SOUTHWEST: /* not implemented */ - break; default: - g_assert_not_reached(); + g_assert_not_reached(); } return dest; } |
