[PATCH weston] drm: don't put too big surfaces in the cursor plane
daniel at fooishbar.org
Mon Nov 21 11:26:44 UTC 2016
On 21 November 2016 at 11:23, Giulio Camuffo <giuliocamuffo at gmail.com> wrote:
> When using output scaling a client surface's wicth and height can be
> smaller than the cursor plane's size, even if its buffer is actually
> bigger. So check the buffer size rather than the surface size.
Derek had a similar yet conflicting fix around viewports, which this
series would break. We need to account for the total transformation:
buffer scale, viewport transform, view transform, and finally output
as well. I think doing this piecemeal across cursor/scanout/overlay is
error-prone and inconsistent, so I've tried to account for all this in
the plane_state part of the atomic modesetting series. Would you care
to cast an eye over that and tell me if you think I've got it right?
More information about the wayland-devel