intel-virtual-output: Just request Damage BBox
As we ourselves only track the BBox of damage on the virtual outputs, we can ask X to amalgamate the damage events as well. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
0baac6bba7
commit
3979d11677
|
|
@ -1756,7 +1756,7 @@ static int display_init_damage(struct display *display)
|
|||
return EINVAL;
|
||||
}
|
||||
|
||||
display->damage = XDamageCreate(display->dpy, display->root, XDamageReportRawRectangles);
|
||||
display->damage = XDamageCreate(display->dpy, display->root, XDamageReportBoundingBox);
|
||||
if (display->damage == 0)
|
||||
return EACCES;
|
||||
|
||||
|
|
@ -1768,7 +1768,7 @@ static void display_reset_damage(struct display *display)
|
|||
{
|
||||
Damage damage;
|
||||
|
||||
damage = XDamageCreate(display->dpy, display->root, XDamageReportRawRectangles);
|
||||
damage = XDamageCreate(display->dpy, display->root, XDamageReportBoundingBox);
|
||||
if (damage) {
|
||||
XDamageDestroy(display->dpy, display->damage);
|
||||
display->damage = damage;
|
||||
|
|
|
|||
Loading…
Reference in New Issue