lighten up a bit on the focus new windows criteria

This commit is contained in:
Dana Jansens 2003-04-19 21:10:27 +00:00
parent 9c55fd5a57
commit ccb8cd61ac

View file

@ -240,7 +240,7 @@ void client_manage(Window window)
client_showhide(self); client_showhide(self);
/* focus the new window? */ /* focus the new window? */
if (ob_state != State_Starting && client_normal(self)) { if (ob_state != State_Starting) {
parent = NULL; parent = NULL;
if (self->transient_for) { if (self->transient_for) {
@ -258,7 +258,7 @@ void client_manage(Window window)
/* note the check against Type_Normal, not client_normal(self), which /* note the check against Type_Normal, not client_normal(self), which
would also include dialog types. in this case we want more strict would also include dialog types. in this case we want more strict
rules for focus */ rules for focus */
if ((config_focus_new && self->type == Type_Normal) || if ((config_focus_new && client_normal(self)) ||
(parent && (client_focused(parent) || (parent && (client_focused(parent) ||
search_focus_tree(parent, parent)))) { search_focus_tree(parent, parent)))) {
client_focus(self); client_focus(self);