Empty the borderClip of manual redirect windows. (bug 15823)

Thanks to Owen Taylor for root-causing this one.

If a TreatAsTransparent window has any area in the borderClip, that will be
added to the totalClip region for use by other windows. That's wrong.
Instead, simply empty the borderClip for TreatAsTransparent windows right up
front.
This commit is contained in:
Keith Packard 2008-05-04 21:51:08 -07:00
parent d500eeb945
commit 6c1accce87

View File

@ -255,7 +255,11 @@ miComputeClips (
if (pParent->redirectDraw != RedirectDrawNone)
{
if (miSetRedirectBorderClipProc)
{
if (TreatAsTransparent (pParent))
REGION_EMPTY (pScreen, universe);
(*miSetRedirectBorderClipProc) (pParent, universe);
}
REGION_COPY(pScreen, universe, &pParent->borderSize);
}
#endif