diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-25 22:40:04 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-25 22:40:04 +0000 |
| commit | fd89a7eadc4caf62ef5ce4b8ce96216a1b506c5a (patch) | |
| tree | 54f3e5a9407b853a7d7eaed0334b0ca79cc29b43 | |
| parent | d3c094357d06f4e65681e7ca7e227a33ebd122a4 (diff) | |
only focus on startup if focus_new is true
| -rw-r--r-- | openbox/client.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c index ef6a0e1a..c475fba3 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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) |
