diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-22 07:06:10 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-22 07:06:10 +0000 |
| commit | 0ba670065529096f0e0f63c67db8e0a0c5580a9c (patch) | |
| tree | 727b8bf5ca8c341210670e71168a621bfffb52c8 /openbox | |
| parent | 574dd66b326bb3c5893b6bf6bfe7307229def653 (diff) | |
even better checks for when to focus new windows. focus dialogs when they are the only member of their group
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/client.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c index 2e0e442a..996c6b88 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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); |
