diff options
author | Maarten Maathuis <madman2003@gmail.com> | 2008-08-29 22:15:23 +0200 |
---|---|---|
committer | Maarten Maathuis <madman2003@gmail.com> | 2008-08-29 22:15:23 +0200 |
commit | 1861250cd7e84b05e8298b74e3c7e97da72ddfba (patch) | |
tree | 1027bb4b5830f0ec336e9e082f4b5dc73fe4bea8 /composite | |
parent | 5af77d43fe812e127d5d335527fa940ab9d95f38 (diff) |
{damage,exa}: sanitise damage
- Redo damage naming for more consistency.
- Call post submission functions only where appropriate.
- EXA can now live without it's odd damage workarounds.
Diffstat (limited to 'composite')
-rw-r--r-- | composite/compalloc.c | 2 | ||||
-rw-r--r-- | composite/compwindow.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/composite/compalloc.c b/composite/compalloc.c index 19c7db0b3..a62647e92 100644 --- a/composite/compalloc.c +++ b/composite/compalloc.c @@ -224,7 +224,7 @@ compFreeClientWindow (WindowPtr pWin, XID id) DamageRegister (&pWin->drawable, cw->damage); cw->damageRegistered = TRUE; pWin->redirectDraw = RedirectDrawAutomatic; - DamageDamageRegion (&pWin->drawable, &pWin->borderSize); + DamageRegionPending(&pWin->drawable, &pWin->borderSize); } if (wasMapped && !pWin->mapped) { diff --git a/composite/compwindow.c b/composite/compwindow.c index c1657bdcd..d2931e752 100644 --- a/composite/compwindow.c +++ b/composite/compwindow.c @@ -585,7 +585,7 @@ compCopyWindow (WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc) REGION_TRANSLATE (prgnSrc, prgnSrc, pWin->drawable.x - ptOldOrg.x, pWin->drawable.y - ptOldOrg.y); - DamageDamageRegion (&pWin->drawable, prgnSrc); + DamageRegionPending(&pWin->drawable, prgnSrc); } cs->CopyWindow = pScreen->CopyWindow; pScreen->CopyWindow = compCopyWindow; @@ -664,7 +664,7 @@ compSetRedirectBorderClip (WindowPtr pWin, RegionPtr pRegion) /* * Report that as damaged so it will be redrawn */ - DamageDamageRegion (&pWin->drawable, &damage); + DamageRegionPending(&pWin->drawable, &damage); REGION_UNINIT (pScreen, &damage); /* * Save the new border clip region |