shell: Do not remove the black surface if we don't have a background 61/24661/3
authorMarius Vlad <marius.vlad@collabora.com>
Mon, 1 Jun 2020 17:12:07 +0000 (20:12 +0300)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 15 Jun 2020 10:09:04 +0000 (10:09 +0000)
set for that output

Bug-AGL: SPEC-3280

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I07ca7108e37dcdb992de0e2223bde3f9fa200863

src/shell.c

index e1aac8d..6944f8a 100644 (file)
@@ -606,7 +606,8 @@ shell_ready(struct wl_client *client, struct wl_resource *shell_res)
        ivi->shell_client.ready = true;
 
        wl_list_for_each(output, &ivi->outputs, link) {
-               remove_black_surface(output);
+               if (output->background)
+                       remove_black_surface(output);
                ivi_layout_init(ivi, output);
        }