layout: Remove black surface when trying to use migrate views to other 59/24659/4
authorMarius Vlad <marius.vlad@collabora.com>
Mon, 1 Jun 2020 18:04:18 +0000 (21:04 +0300)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 15 Jun 2020 10:08:51 +0000 (10:08 +0000)
commit9d29ef9fdb4a236affaec23f050baad0cfca3659
treef10674ba216d546721dae5d985eea206791c9add
parent8df7681a823e5e6f7ead5150abf65dd84d05aecd
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 it 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