hc
2025-02-14 bbb9540dc49f70f6b703d1c8d1b85fa5f602d86e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 06eeddbe628998dc85d565aea4e73ddb01e31ce9 Mon Sep 17 00:00:00 2001
From: Jeffy Chen <jeffy.chen@rock-chips.com>
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 <jeffy.chen@rock-chips.com>
---
 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