layout: Resize the active surface when doing the split 10/24510/3
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 1 May 2020 11:31:07 +0000 (14:31 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Mon, 18 May 2020 10:01:48 +0000 (13:01 +0300)
commit52769b82974afda0b4bba8b0c98a996cb96cac06
tree9a18390ac6e96353a0421be996fba3352b535998
parent2349f210e12b783f6a314b9331035ecd066707c7
layout: Resize the active surface when doing the split

This adds an intermediate geometry variable which is used to save and
restore to the original available geometry when destroying the split
surface. This takes care to inform the client that a new resize is
needed when the split surface is destroyed or when the split surface
is committed.

The width and height of the split surface is derived from the available
geometry area size (the available size of the background surface) but
this can further adapted to be based on the split window size (that is,
it could be specified by the client). This assumption is there to
simplify the implementation.

Bug-AGL: SPEC-3334

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ia484a922a7cbd314db2c878f81cb548458d1c1cd
src/desktop.c
src/ivi-compositor.h
src/layout.c