layout: Fix-up the positions when placing the pop-up/dialog 36/26836/3
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 5 Nov 2021 17:38:21 +0000 (19:38 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 9 Nov 2021 12:08:29 +0000 (12:08 +0000)
commite4f4aef1a5b1feb95c40b3c453f448c5bcf9c054
tree0cf75c6c5713758296b997576f1d78598055ced5
parent52df92d73985dba862a157c5ca3003cbe465e295
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