layout: Clip the view to the size specified by width and height 56/24756/4
authorMarius Vlad <marius.vlad@collabora.com>
Thu, 11 Jun 2020 15:07:42 +0000 (18:07 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Mon, 15 Jun 2020 17:23:38 +0000 (20:23 +0300)
commit51be2ca7b38cacb368a9b49423dae7e3c84a4b98
tree1ebdb7149bed4ae0dcd574c29c18a9f85ee22925
parent7854caaca193dbc68c7384f21233a1637ab0382e
layout: Clip the view to the size specified by width and height

This uses the bx and by as origin for the bounding box if those were
passed on. The compositor will set up a mask clip for the window if the
both width and height are positive.

This also removes the geometry of the surface and passes the x and y values
directly.

Bug-AGL: SPEC-3419

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I174f1ccbffad3c99e74fbb5ee90888b4ad879230
src/layout.c