summaryrefslogtreecommitdiff
path: root/composite
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2007-07-10 21:33:34 -0700
committerKeith Packard <keithp@neko.keithp.com>2007-07-10 21:33:55 -0700
commitb2f9ca6ac400d426d7a1ef0162f7e7ce28288dd1 (patch)
treeeff077920cd1aaecdf84efa7d024b227362e807a /composite
parent561989f2f0fc31e3d3bf8df978a9cb3d4c85af59 (diff)
Redirect fix: Manual + Automatic - Manual = Automatic
A window with redirect manual *and* redirect automatic which loses the manual redirecting client becomes redirect automatic.
Diffstat (limited to 'composite')
-rw-r--r--composite/compalloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/composite/compalloc.c b/composite/compalloc.c
index 1a7e4a0da..f555411bf 100644
--- a/composite/compalloc.c
+++ b/composite/compalloc.c
@@ -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)