]> Dogcows Code - chaz/openbox/commitdiff
only focus on startup if focus_new is true
authorDana Jansens <danakj@orodu.net>
Fri, 25 Apr 2003 22:40:04 +0000 (22:40 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 25 Apr 2003 22:40:04 +0000 (22:40 +0000)
openbox/client.c

index ef6a0e1a112936eda697ac165f27dd5cba5a9364..c475fba309054982c873a1942fe258c556a75bbb 100644 (file)
@@ -135,10 +135,11 @@ void client_manage_all()
     startup_stack_order = NULL;
     startup_stack_size = 0;
 
-    active = g_hash_table_lookup(client_map, &startup_active);
-    if (!active || !client_focus(active))
-        if (config_focus_new)
+    if (config_focus_new) {
+        active = g_hash_table_lookup(client_map, &startup_active);
+        if (!active || !client_focus(active))
             focus_fallback(Fallback_NoFocus);
+    }
 }
 
 void client_manage(Window window)
This page took 0.02813 seconds and 4 git commands to generate.