focus new children if their direct parent is focused
This commit is contained in:
parent
3a595d037d
commit
54ccb6a542
1 changed files with 3 additions and 1 deletions
|
@ -278,7 +278,9 @@ void client_manage(Window window)
|
||||||
|
|
||||||
/* focus the new window? */
|
/* focus the new window? */
|
||||||
if (ob_state() != OB_STATE_STARTING &&
|
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),
|
/* note the check against Type_Normal/Dialog, not client_normal(self),
|
||||||
which would also include other types. in this case we want more
|
which would also include other types. in this case we want more
|
||||||
strict rules for focus */
|
strict rules for focus */
|
||||||
|
|
Loading…
Reference in a new issue