]> Dogcows Code - chaz/openbox/commitdiff
even better checks for when to focus new windows. focus dialogs when they are the...
authorDana Jansens <danakj@orodu.net>
Tue, 22 Apr 2003 07:06:10 +0000 (07:06 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 22 Apr 2003 07:06:10 +0000 (07:06 +0000)
openbox/client.c

index 2e0e442addb4ad5c861be0a687ba16a3e9e0b49a..996c6b88a4a579c399ef43db1a9b4d7db5ecf4da 100644 (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);
This page took 0.02767 seconds and 4 git commands to generate.