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:
Dana Jansens 2003-04-22 07:06:10 +00:00
parent 574dd66b32
commit 0ba6700655

View file

@ -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);