]> Dogcows Code - chaz/openbox/commitdiff
lighten up a bit on the focus new windows criteria
authorDana Jansens <danakj@orodu.net>
Sat, 19 Apr 2003 21:10:27 +0000 (21:10 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 19 Apr 2003 21:10:27 +0000 (21:10 +0000)
openbox/client.c

index 98f3dea4913b13e3fc693b65f6244e82d9d0e28b..a9f3204451cfe25f8908dc3265dc579c9b198fc3 100644 (file)
@@ -240,7 +240,7 @@ void client_manage(Window window)
     client_showhide(self);
 
     /* focus the new window? */
-    if (ob_state != State_Starting && client_normal(self)) {
+    if (ob_state != State_Starting) {
         parent = NULL;
 
         if (self->transient_for) {
@@ -258,7 +258,7 @@ 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 && client_normal(self)) ||
             (parent && (client_focused(parent) ||
                         search_focus_tree(parent, parent)))) {
             client_focus(self);
This page took 0.024531 seconds and 4 git commands to generate.