new focus-new rules
This commit is contained in:
parent
8dfa16abae
commit
d3ce8451bc
1 changed files with 3 additions and 1 deletions
|
@ -258,7 +258,9 @@ void client_manage(Window window)
|
|||
/* note the check against Type_Normal, not client_normal(self), which
|
||||
would also include dialog types. in this case we want more strict
|
||||
rules for focus */
|
||||
if ((config_focus_new && self->type == Type_Normal) ||
|
||||
if ((config_focus_new &&
|
||||
(self->type == Type_Normal ||
|
||||
(self->type == Type_Dialog && !parent && !self->group))) ||
|
||||
(parent && (client_focused(parent) ||
|
||||
search_focus_tree(parent, parent)))) {
|
||||
client_focus(self);
|
||||
|
|
Loading…
Reference in a new issue