summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;