summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2006-08-19 15:35:23 +0000
committerMikael Magnusson <mikachu@comhem.se>2006-08-19 15:35:23 +0000
commit34269a34e14aaf0339b3687a713415dff4ad36d2 (patch)
tree637e2ba7fed37c58802a1589186625e2e2e934a1
parentfa6497060ae559d4c0b59ccdfc918c74f7db42d8 (diff)
lets not change the stacking before we add the window to the stacking stack
-rw-r--r--openbox/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 21673535..060548bf 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -322,6 +322,9 @@ void client_manage(Window window)
/* get and set application level settings */
settings = get_settings(self);
+ stacking_add(CLIENT_AS_WINDOW(self));
+ client_restore_session_stacking(self);
+
if (settings) {
/* Don't worry, we won't actually both shade and undecorate the
* window when push comes to shove. */
@@ -364,9 +367,6 @@ void client_manage(Window window)
}
- stacking_add(CLIENT_AS_WINDOW(self));
- client_restore_session_stacking(self);
-
/* focus the new window? */
if (ob_state() != OB_STATE_STARTING &&
(config_focus_new || client_search_focus_parent(self)) ||