HYL_OK3568_LINUX/buildroot/package/weston/0077-compositor-Stop-bootanim-after-warm-up.patch
2025-05-10 21:49:39 +08:00

37 lines
1.1 KiB
Diff

From 5de2efabd372722ef5f3b94b4ce8369b537e6f07 Mon Sep 17 00:00:00 2001
From: Jeffy Chen <jeffy.chen@rock-chips.com>
Date: Wed, 28 Sep 2022 10:44:07 +0800
Subject: [PATCH 77/92] compositor: Stop bootanim after warm-up
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
libweston/compositor.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libweston/compositor.c b/libweston/compositor.c
index ddd2180..d51a0bd 100644
--- a/libweston/compositor.c
+++ b/libweston/compositor.c
@@ -3279,6 +3279,10 @@ weston_compositor_build_view_list(struct weston_compositor *compositor,
weston_log("seeing the first app\n");
compositor->warm_up = false;
+#define BOOTANIM "/usr/bin/bootanim"
+ if (!access(BOOTANIM, X_OK))
+ (void)!system(BOOTANIM " stop&");
+
/* Assuming it's a launcher */
view->surface->flags |= SURFACE_STAY_ON_BOTTOM;
}
@@ -3562,6 +3566,7 @@ output_repaint_timer_handler(void *data)
if (!access(getenv("WESTON_FREEZE_DISPLAY") ? : "", F_OK)) {
usleep(DEFAULT_REPAINT_WINDOW * 1000);
+ weston_compositor_build_view_list(compositor, NULL);
goto out;
}
--
2.20.1