Replace usage of DamageRegionAppend with DamageDamageRegion to fix reportAfter.
In all these cases, any rendering implied by this damage has already occurred, and we want to get the damage out to the client. Some of the DamageRegionAppend calls were explicitly telling damage to flush the reportAfter damage out, but not all. Bug #30260. Fixes the compiz wallpaper plugin with client damage changed to reportAfter. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
committed by
Keith Packard
parent
c80c41767e
commit
f36153e3ef
@@ -519,7 +519,7 @@ compCopyWindow (WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
|
||||
RegionTranslate(prgnSrc,
|
||||
pWin->drawable.x - ptOldOrg.x,
|
||||
pWin->drawable.y - ptOldOrg.y);
|
||||
DamageRegionAppend(&pWin->drawable, prgnSrc);
|
||||
DamageDamageRegion(&pWin->drawable, prgnSrc);
|
||||
}
|
||||
cs->CopyWindow = pScreen->CopyWindow;
|
||||
pScreen->CopyWindow = compCopyWindow;
|
||||
@@ -598,7 +598,7 @@ compSetRedirectBorderClip (WindowPtr pWin, RegionPtr pRegion)
|
||||
/*
|
||||
* Report that as damaged so it will be redrawn
|
||||
*/
|
||||
DamageRegionAppend(&pWin->drawable, &damage);
|
||||
DamageDamageRegion(&pWin->drawable, &damage);
|
||||
RegionUninit(&damage);
|
||||
/*
|
||||
* Save the new border clip region
|
||||
|
||||
Reference in New Issue
Block a user