summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-02-21 23:31:22 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-02-21 23:31:22 +0800
commit96eaecceaccccb2c857e565c9e24ba8de457054e (patch)
tree1f58208df53f1aa84966ae2678c60b6ca998b12d
parent3c073f1f63b54538d9e8814ef63e0402e60b26d8 (diff)
downloadcompiz-with-glib-mainloop-96eaecceaccccb2c857e565c9e24ba8de457054e.tar.gz
compiz-with-glib-mainloop-96eaecceaccccb2c857e565c9e24ba8de457054e.tar.bz2
Fix initial stacking issues
-rw-r--r--src/screen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index bf02566..81180ca 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -4633,10 +4633,12 @@ CompScreen::init (const char *name)
}
}
+ i = 0;
+
/* enforce restack on all windows */
for (CompWindowList::reverse_iterator rit = priv->windows.rbegin ();
rit != priv->windows.rend (); rit++)
- children[i] = (*rit)->id ();
+ children[i++] = (*rit)->id ();
XRestackWindows (dpy, children, i);