Redirect fix: Manual + Automatic - Manual = Automatic

A window with redirect manual *and* redirect automatic which loses the
manual redirecting client becomes redirect automatic.
This commit is contained in:
Keith Packard 2007-07-10 21:33:34 -07:00
parent 561989f2f0
commit b2f9ca6ac4

View File

@ -220,6 +220,7 @@ compFreeClientWindow (WindowPtr pWin, XID id)
{
DamageRegister (&pWin->drawable, cw->damage);
cw->damageRegistered = TRUE;
pWin->redirectDraw = RedirectDrawAutomatic;
DamageDamageRegion (&pWin->drawable, &pWin->borderSize);
}
if (wasMapped && !pWin->mapped)