composite: Initialize borderClip with current values
ValidateTree needs a valid borderClip so initialize the parent constrained border clip with the window's current borderClip in compRedirectWindow. Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
ce9eff9e4c
commit
a6ae917462
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user