From 06eeddbe628998dc85d565aea4e73ddb01e31ce9 Mon Sep 17 00:00:00 2001 From: Jeffy Chen Date: Thu, 15 Oct 2020 12:43:00 +0800 Subject: [PATCH 30/69] compositor: Force the first app on bottom in warm-up mode When warm-up enabled, assume the first app is a launcher and put it on the bottom layer. Signed-off-by: Jeffy Chen --- libweston/compositor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libweston/compositor.c b/libweston/compositor.c index 3c7398b8a..85e76d064 100644 --- a/libweston/compositor.c +++ b/libweston/compositor.c @@ -2895,6 +2895,9 @@ weston_compositor_build_view_list(struct weston_compositor *compositor) if (compositor->warm_up && !system_layer) { weston_log("seeing the first app\n"); compositor->warm_up = false; + + /* Assuming it's a launcher */ + view->surface->flags |= SURFACE_STAY_ON_BOTTOM; } view_list_add(compositor, view, view->output); -- 2.20.1