X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.c;h=266eea434c8782feb10be076b6ca42fa08513c95;hb=54ccb6a5428fbf33bf1a97d0f60f6623f0195fa3;hp=0952909c0b3e223869b165e54a122af27383d5d3;hpb=710f41e622b76dd03e9f43bd76a63eeb3070e63c;p=chaz%2Fopenbox diff --git a/openbox/client.c b/openbox/client.c index 0952909c..266eea43 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -278,7 +278,9 @@ void client_manage(Window window) /* focus the new window? */ if (ob_state() != OB_STATE_STARTING && - (config_focus_new || client_search_focus_tree_full(self)) && + (config_focus_new || (self->transient_for && + self->transient_for != TRAN_GROUP && + client_focused(self->transient_for))) && /* note the check against Type_Normal/Dialog, not client_normal(self), which would also include other types. in this case we want more strict rules for focus */