diff options
-rw-r--r-- | composite/compalloc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/composite/compalloc.c b/composite/compalloc.c index 2b6864519..6d10b2ea0 100644 --- a/composite/compalloc.c +++ b/composite/compalloc.c @@ -170,9 +170,11 @@ compRedirectWindow (ClientPtr pClient, WindowPtr pWin, int update) EnableMapUnmapEvents (pWin); } + /* Make sure our borderClip is correct for ValidateTree */ RegionNull(&cw->borderClip); - cw->borderClipX = 0; - cw->borderClipY = 0; + RegionCopy(&cw->borderClip, &pWin->borderClip); + cw->borderClipX = pWin->drawable.x; + cw->borderClipY = pWin->drawable.y; cw->update = CompositeRedirectAutomatic; cw->clients = 0; cw->oldx = COMP_ORIGIN_INVALID; |