compositor: Added layout_save/layout_restore 05/28505/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, 15 Feb 2023 16:11:20 +0000 (18:11 +0200)
commit28ec0cff16d62260fb1a5900f57353f48446e199
tree5030a82e8267bbffc3c74298e7d0b444907fb750
parentee50083d93869aaa581a092c522efe08252fae55
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
src/compositor.c
src/desktop.c
src/ivi-compositor.h