1From 5810584bc2167652bada505ec11f509283103cc0 Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Wed, 28 Sep 2022 10:44:07 +0800
4Subject: [PATCH 78/79] compositor: Stop bootanim after warm-up
5
6Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
7---
8 libweston/compositor.c | 5 +++++
9 1 file changed, 5 insertions(+)
10
11diff --git a/libweston/compositor.c b/libweston/compositor.c
12index 6e917f3..f0ddf80 100644
13--- a/libweston/compositor.c
14+++ b/libweston/compositor.c
15@@ -2933,6 +2933,10 @@ weston_compositor_build_view_list(struct weston_compositor *compositor,
16 				weston_log("seeing the first app\n");
17 				compositor->warm_up = false;
18
19+#define BOOTANIM "/usr/bin/bootanim"
20+				if (!access(BOOTANIM, X_OK))
21+					(void)!system(BOOTANIM " stop&");
22+
23 				/* Assuming it's a launcher */
24 				view->surface->flags |= SURFACE_STAY_ON_BOTTOM;
25 			}
26@@ -3200,6 +3204,7 @@ output_repaint_timer_handler(void *data)
27
28 	if (!access(getenv("WESTON_FREEZE_DISPLAY") ? : "", F_OK)) {
29 		usleep(DEFAULT_REPAINT_WINDOW * 1000);
30+		weston_compositor_build_view_list(compositor, NULL);
31 		goto out;
32 	}
33
34--
352.20.1
36
37