sna: Process winSize region
Sometimes the window size is not a simple box, but a full region. In which case we do need to process it and not just assert that it is a box! Reported-by: Jiri Slaby <jirislaby@gmai.com> References: https://bugs.freedesktop.org/show_bug.cgi?id=47597 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
962460c0e1
commit
9ac895fccb
|
|
@ -5641,8 +5641,10 @@ sna_do_copy(DrawablePtr src, DrawablePtr dst, GCPtr gc,
|
|||
if (gc->subWindowMode == IncludeInferiors) {
|
||||
DBG(("%s: window -- include inferiors\n", __FUNCTION__));
|
||||
|
||||
assert(!w->winSize.data);
|
||||
box_intersect(®ion.extents, &w->winSize.extents);
|
||||
if (w->winSize.data)
|
||||
RegionIntersect(®ion, ®ion, &w->winSize);
|
||||
else
|
||||
box_intersect(®ion.extents, &w->winSize.extents);
|
||||
clip = &w->borderClip;
|
||||
} else {
|
||||
DBG(("%s: window -- clip by children\n", __FUNCTION__));
|
||||
|
|
|
|||
Loading…
Reference in New Issue