~smspillaz/compiz-animation-plugin/compiz-animation-plugion.fix_940603

« back to all changes in this revision

Viewing changes to src/animation.cpp

  • Committer: Sam Spilsbury
  • Date: 2011-09-15 14:37:30 UTC
  • Revision ID: git-v1:d8d663b6baa052376a85f80220a160dd27572c50
Copy the list for now until we can work out why list iterators
are returning invalid sizes with references

Show diffs side-by-side

added added

removed removed

Lines of Context:
1229
1229
    if (mAnimInProgress)
1230
1230
    {   
1231
1231
        int msSinceLastPaintActual;
1232
 
        const CompWindowList &pl = cScreen->getWindowPaintList ();
 
1232
        CompWindowList pl = cScreen->getWindowPaintList ();
1233
1233
 
1234
1234
        struct timeval curTime;
1235
1235
        gettimeofday (&curTime, 0);
1250
1250
        bool animStillInProgress = false;
1251
1251
 
1252
1252
        /* Paint list includes destroyed windows */
1253
 
        for (CompWindowList::const_reverse_iterator rit = pl.rbegin ();
 
1253
        for (CompWindowList::reverse_iterator rit = pl.rbegin ();
1254
1254
             rit != pl.rend (); rit++)
1255
1255
        {
1256
1256
            CompWindow *w = (*rit);