projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a595d0
)
focus new children if their direct parent is focused
author
Dana Jansens
<danakj@orodu.net>
Thu, 25 Sep 2003 19:01:45 +0000
(19:01 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 25 Sep 2003 19:01:45 +0000
(19:01 +0000)
openbox/client.c
patch
|
blob
|
history
diff --git
a/openbox/client.c
b/openbox/client.c
index
0952909
..
266eea4
100644
(file)
--- 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 */