layout: Fix-up the positions when placing the pop-up/dialog 65/26865/1 12.1.0 lamprey/12.1.0 lamprey_12.1.0
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 5 Nov 2021 17:38:21 +0000 (19:38 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 12 Nov 2021 16:49:42 +0000 (18:49 +0200)
commit59b6881bc315388ba0c8f1be382dce1f6aed3304
treef4ec81c4dcf2891e53408090522ea801c9c8e3c0
parent10d2c1d637e9ef8759e1756ef626ab24aed7c668
layout: Fix-up the positions when placing the pop-up/dialog

Turns out we weren't accounting for the initial position (of the output)
as to derive the correct positioning of thew view/surface. This uses the
output x and y value and together with the values supplied by the user
to result in correct placement.

Bug-AGL: SPEC-4127

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