summaryrefslogtreecommitdiff
path: root/src/plugin.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-09-16 19:05:23 +0200
committerDennis Kasprzyk <onestone@compiz-fusion.org>2008-09-16 19:05:23 +0200
commitbc5e75be70a83a9d9b3a6624e2ff9553d4cd6a89 (patch)
treedd32603733cf14a87450117bff9b2120f17e7579 /src/plugin.cpp
parentd5c1735d31485cfbcb8502a1489a5ad88b692905 (diff)
downloadunity-window-decorator-bc5e75be70a83a9d9b3a6624e2ff9553d4cd6a89.tar.gz
unity-window-decorator-bc5e75be70a83a9d9b3a6624e2ff9553d4cd6a89.tar.bz2
Initialize window in correct order.
Diffstat (limited to 'src/plugin.cpp')
-rw-r--r--src/plugin.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/plugin.cpp b/src/plugin.cpp
index b4ad02f..e15acea 100644
--- a/src/plugin.cpp
+++ b/src/plugin.cpp
@@ -376,9 +376,17 @@ CompPlugin::windowInitPlugins (CompWindow *w)
{
bool status = true;
- foreach (CompPlugin *p, plugins)
+ CompPlugin::List::reverse_iterator rit = plugins.rbegin ();
+
+ CompPlugin *p = NULL;
+
+ while (rit != plugins.rend ())
{
- p->vTable->finiWindow (w);
+ p = (*rit);
+
+ status &= p->vTable->initWindow (w);
+
+ rit++;
}
return status;