layout: Resize the active surface when doing the split 10/24510/8
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 1 May 2020 11:31:07 +0000 (14:31 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Mon, 8 Jun 2020 14:26:36 +0000 (17:26 +0300)
commita9ae8d75026b1fa1ef32d143da23bc8ee9aedeaa
tree0f4c0c9dd10a67c00ab900649d6a079e8cd335f6
parent831d1b21b5e786d2e5e804ca5a6a2a2b1dfacd1e
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