EXA: Try harder to keep current pixmap copy up to date in exaMigrateToward*.

This is probably required, but apparently not sufficient, for making migration
heuristics other than "always" work correctly again. Not that I really care
about them...
This commit is contained in:
Michel Dänzer 2009-02-06 18:30:43 +01:00
parent 3948b52389
commit f112d6bf59

View File

@ -463,7 +463,11 @@ exaMigrateTowardFb (ExaMigrationPtr migrate)
exaDoMoveInPixmap(migrate);
}
ExaOffscreenMarkUsed (pPixmap);
if (exaPixmapIsOffscreen(pPixmap)) {
exaCopyDirtyToFb (migrate);
ExaOffscreenMarkUsed (pPixmap);
} else
exaCopyDirtyToSys (migrate);
}
/**
@ -496,6 +500,12 @@ exaMigrateTowardSys (ExaMigrationPtr migrate)
if (pExaPixmap->score <= EXA_PIXMAP_SCORE_MOVE_OUT && pExaPixmap->area)
exaDoMoveOutPixmap(migrate);
if (exaPixmapIsOffscreen(pPixmap)) {
exaCopyDirtyToFb (migrate);
ExaOffscreenMarkUsed (pPixmap);
} else
exaCopyDirtyToSys (migrate);
}
/**