summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-02-11 21:01:55 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-02-11 21:01:55 +0800
commita88ce82055552f7d007dfa62bbe1c9717b42c1c9 (patch)
tree8aa8d2c0044d09b7b76211f4ce83bd8ea691a458
parentbd14afde58b743a1a9ba94b98dd1e107c841ca06 (diff)
parentc68018cd42294da8cc5f4d185f467133c7c3e623 (diff)
downloadcompiz-with-glib-mainloop-a88ce82055552f7d007dfa62bbe1c9717b42c1c9.tar.gz
compiz-with-glib-mainloop-a88ce82055552f7d007dfa62bbe1c9717b42c1c9.tar.bz2
Merge branch 'master' of git+ssh://git.compiz.org/git/users/dbo/compiz-with-glib-mainloop
-rw-r--r--src/screen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index 41020c7..c9af3df 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -4587,9 +4587,10 @@ CompScreen::init (const char *name)
priv->vpSize.setHeight (priv->optionGetVsize ());
/* enforce restack on all windows */
+ i = 0;
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);