protocol,compositor: split wl_viewport setters

Graphics / Wayland / Weston - Pekka Paalanen [collabora.co.uk] - 1 April 2014 18:46 UTC

Bump wl_scaler and wl_viewport versions to 2. Add new requests wl_viewport.set_source and .set_destination, which are meant to replace wl_viewport.set request.

Now a client can set and unset just one of source rectangle and destination size. Define the semantics when one of these is unset.

Implement these semantics changes in compositor and pixman renderer. GL-renderer does not need changes.

0b4c535 protocol,compositor: split wl_viewport setters
protocol/scaler.xml | 77 +++++++++++++++++++++++------
src/compositor.c | 130 +++++++++++++++++++++++++++++++++++++------------
src/compositor.h | 2 +
src/pixman-renderer.c | 49 +++++++++++--------
4 files changed, 195 insertions(+), 63 deletions(-)

Upstream: cgit.freedesktop.org


  • Share