compositor: Added layout_save/layout_restore 46/28546/1
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 15 Feb 2023 15:02:28 +0000 (17:02 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 1 Mar 2023 10:36:05 +0000 (12:36 +0200)
commit6d41be723042cbbb6962d907d52cac1af8f7f130
tree8d1e7adfe6c36f3619e7c57965d396d1c5ffa24c
parent6678f58648dd18216620604eacf9c2172420c05a
compositor: Added layout_save/layout_restore

In order to send correct dimensions after a hot-plug event, we need to
be able to save the area we had before.

Note that implies that the connectors do not change names in between
hot-plugs, which normally doesn't happen, but it might if udev rules are
executed/invoked. We restore based on output name it had previously.

Bug-AGL: SPEC-4705
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ice3a127edfc9d356830ba8f0d0a20bb86284d7de
(cherry picked from commit 28ec0cff16d62260fb1a5900f57353f48446e199)
src/compositor.c
src/desktop.c
src/ivi-compositor.h