]> Dogcows Code - chaz/openbox/commitdiff
new focus-new rules
authorDana Jansens <danakj@orodu.net>
Sun, 20 Apr 2003 05:53:10 +0000 (05:53 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 20 Apr 2003 05:53:10 +0000 (05:53 +0000)
openbox/client.c

index a473fdb187b1f2c3f2f0007b72a42efd28d07939..c4df3a87595a9f25519e7133253ca4ccce6f5ae4 100644 (file)
@@ -258,7 +258,9 @@ void client_manage(Window window)
         /* note the check against Type_Normal, not client_normal(self), which
            would also include dialog types. in this case we want more strict
            rules for focus */
-        if ((config_focus_new && self->type == Type_Normal) ||
+        if ((config_focus_new &&
+             (self->type == Type_Normal ||
+              (self->type == Type_Dialog && !parent && !self->group))) ||
             (parent && (client_focused(parent) ||
                         search_focus_tree(parent, parent)))) {
             client_focus(self);
This page took 0.028373 seconds and 4 git commands to generate.