summaryrefslogtreecommitdiff
path: root/exa/exa_migration.c
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-08-26 20:02:55 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-08-26 20:02:55 +0200
commitdd1e54d6eed0bce289517b3cb95e6b1a187ca6e0 (patch)
tree2caa48dd7c87b762a1b05de6713392fc8f6ef7a1 /exa/exa_migration.c
parent7c14fdbacfcd2f4d56a346e6c72e44e4ba9909c1 (diff)
- the drawable of the pixmap is not the same as the original drawable (possibly a DRAWABLE_WINDOW)
Diffstat (limited to 'exa/exa_migration.c')
-rw-r--r--exa/exa_migration.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/exa/exa_migration.c b/exa/exa_migration.c
index 013781581..2bb2ad94f 100644
--- a/exa/exa_migration.c
+++ b/exa/exa_migration.c
@@ -53,9 +53,9 @@
* because their calls are wrapped by the damage layer.
*/
Bool
-exaDamageDestForMigration(PixmapPtr pPix, RegionPtr region)
+exaDamageDestForMigration(DrawablePtr pDrawable, PixmapPtr pPix, RegionPtr region)
{
- ScreenPtr pScreen = pPix->drawable.pScreen;
+ ScreenPtr pScreen = pDrawable->pScreen;
(void) pScreen; /* the macros don't use pScreen currently */
ExaPixmapPriv (pPix);
int x_offset, y_offset;
@@ -64,7 +64,7 @@ exaDamageDestForMigration(PixmapPtr pPix, RegionPtr region)
if (!pExaPixmap->pDamage)
return FALSE;
- exaGetDrawableDeltas(&pPix->drawable, pPix, &x_offset, &y_offset);
+ exaGetDrawableDeltas(pDrawable, pPix, &x_offset, &y_offset);
REGION_TRANSLATE(pScreen, region, x_offset, y_offset);
pending_damage = DamagePendingRegion(pExaPixmap->pDamage);