summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-20 05:53:10 +0000
committerDana Jansens <danakj@orodu.net>2003-04-20 05:53:10 +0000
commitd3ce8451bca09e96b3aea0f891c4ed51b83cd5f9 (patch)
tree836b5ee22e70515e972025219165d1d313aae80a
parent8dfa16abaed94350a901dea0969752d0692753fe (diff)
new focus-new rules
-rw-r--r--openbox/client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c
index a473fdb1..c4df3a87 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -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);