all repos — openbox @ d3ce8451bca09e96b3aea0f891c4ed51b83cd5f9

openbox fork - make it a bit more like ryudo

new focus-new rules
Dana Jansens danakj@orodu.net
commit

d3ce8451bca09e96b3aea0f891c4ed51b83cd5f9

parent

8dfa16abaed94350a901dea0969752d0692753fe

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -258,7 +258,9 @@ }

/* 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);