all repos — openbox @ 54ccb6a5428fbf33bf1a97d0f60f6623f0195fa3

openbox fork - make it a bit more like ryudo

focus new children if their direct parent is focused
Dana Jansens danakj@orodu.net
commit

54ccb6a5428fbf33bf1a97d0f60f6623f0195fa3

parent

3a595d037dce79bd91e6ee975e6ac4265985d3e1

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -278,7 +278,9 @@ client_restore_session_stacking(self);

/* focus the new window? */ if (ob_state() != OB_STATE_STARTING && - (config_focus_new || client_search_focus_tree_full(self)) && + (config_focus_new || (self->transient_for && + self->transient_for != TRAN_GROUP && + client_focused(self->transient_for))) && /* 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 */