all repos — openbox @ 7d93a21878db8d06bd4e3e9f6bcb6e0aa2e324ed

openbox fork - make it a bit more like ryudo

let new utility windows get focus under the normal rules
Dana Jansens danakj@orodu.net
commit

7d93a21878db8d06bd4e3e9f6bcb6e0aa2e324ed

parent

b2dfa2fc9bdd012cbb7e58a99ddc30440b14d40d

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

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

@@ -349,10 +349,11 @@ ((config_focus_new || (settings && settings->focus == 1)) ||

client_search_focus_tree_full(self)) && /* this checks for focus=false for the window */ (!settings || settings->focus != 0) && - /* 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 */ + /* note the check against type Normal/Dialog/Utility, + not client_normal(self), which would also include other types. + in this case we want more strict rules for focus */ (self->type == OB_CLIENT_TYPE_NORMAL || + self->type == OB_CLIENT_TYPE_UTILITY || self->type == OB_CLIENT_TYPE_DIALOG)) { activate = TRUE;