layout: Remove black surface when trying to use migrate views to other 59/24659/1
authorMarius Vlad <marius.vlad@collabora.com>
Mon, 1 Jun 2020 18:04:18 +0000 (21:04 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Mon, 8 Jun 2020 20:19:29 +0000 (23:19 +0300)
commit1bb0de141fef88854ce07ef4bed8bc0c1d7fffee
treee37bca1adf2633d9e4aaf5a30894105552f589d4
parent7facdb9fb53872b6e63e3334c776d7c54638616c
layout: Remove black surface when trying to use migrate views to other
outputs

We install a black surface in the fullscreen layer for each output, and
we need to remove is before adding the new surfaces/views. We did that
aleady for 'remote' type of surfaces when categorizing the type, but
here we use the configuration file to determine the output, but we were
missing the black surface for that output. This verifies that the black
surface for that output is in use, and removes the black surface if so.

Bug-AGL: SPEC-3280

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I3c4ae90ee0983bc424c932715d9a1ff082117bef
src/layout.c