1From 5de2efabd372722ef5f3b94b4ce8369b537e6f07 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 77/92] 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 ddd2180..d51a0bd 100644 13--- a/libweston/compositor.c 14+++ b/libweston/compositor.c 15@@ -3279,6 +3279,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@@ -3562,6 +3566,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