summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugin.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugin.cpp b/src/plugin.cpp
index dd5bc7e8..7aff05f 100644
--- a/src/plugin.cpp
+++ b/src/plugin.cpp
@@ -351,11 +351,12 @@ CompScreen::finiPluginForScreen (CompPlugin *p)
bool
CompPlugin::screenInitPlugins (CompScreen *s)
{
- CompPlugin::List::iterator it = plugins.begin ();
+ CompPlugin::List::reverse_iterator it = plugins.rbegin ();
CompPlugin *p = NULL;
- while (it != plugins.end ())
+ /* Plugins is a btf list, so iterate it in reverse */
+ while (it != plugins.rend ())
{
p = (*it);