summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-19 21:10:27 +0000
committerDana Jansens <danakj@orodu.net>2003-04-19 21:10:27 +0000
commitccb8cd61ac436d30102af024854199058bd5e147 (patch)
tree09a34385f277598566485938f2f8ca3bda4565d1 /openbox
parent9c55fd5a57aa81f672cda3371379ae4fd7e6c34b (diff)
lighten up a bit on the focus new windows criteria
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 98f3dea4..a9f32044 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -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);