summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2009-12-08 14:16:08 -0500
committerDana Jansens <danakj@orodu.net>2009-12-08 14:16:08 -0500
commit672aea85cfe2ac2bc8cb4e3f34fd023f10d90182 (patch)
treeed694101ddc2e1fe4f21d1a850b28f1f58c612ad /openbox/client.c
parent07126124c9242a5a20883c3145464730e50afe94 (diff)
Don't hilite new windows when we're restoring them from a saved session.
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c
index ecb4aafe..a91b9503 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -505,9 +505,10 @@ void client_manage(Window window, ObPrompt *prompt)
if (!activate) {
/* if the client isn't stealing focus, then hilite it so the user
- knows it is there */
- /* XXX don't do this if we're restoring from a session */
- client_hilite(self, TRUE);
+ knows it is there, but don't do this if we're restoring from a
+ session */
+ if (!client_restore_session_stacking(self))
+ client_hilite(self, TRUE);
}
}
else {