even better checks for when to focus new windows. focus dialogs when they are the only member of their group
This commit is contained in:
parent
574dd66b32
commit
0ba6700655
1 changed files with 4 additions and 2 deletions
|
@ -271,8 +271,10 @@ void client_manage(Window window)
|
|||
rules for focus */
|
||||
if ((config_focus_new &&
|
||||
(self->type == Type_Normal ||
|
||||
(self->type == Type_Dialog && (group_foc ||
|
||||
(!parent && !self->group))))) ||
|
||||
(self->type == Type_Dialog &&
|
||||
(group_foc ||
|
||||
(!parent && (!self->group ||
|
||||
!self->group->members->next)))))) ||
|
||||
(parent && (client_focused(parent) ||
|
||||
search_focus_tree(parent, parent)))) {
|
||||
client_focus(self);
|
||||
|
|
Loading…
Reference in a new issue