plymouth/two-step-Fix-animation-not-starting-on-later-added-h.patch
songnannan b411777e51 init
2019-12-28 09:27:13 +08:00

39 lines
1.5 KiB
Diff

From 9639ed895331924b24670ff6f814aaa952ad5b02 Mon Sep 17 00:00:00 2001
From: Hans de Goede <hdegoede@redhat.com>
Date: Mon, 12 Nov 2018 12:50:33 +0100
Subject: [PATCH 063/142] two-step: Fix animation not starting on later added
heads
Fix the animation not starting on heads added after show_splash_screen
has been called. Since the core calls show_splash_screen after adding
the first head / pixel_display in practice this fixes the animation not
starting on all monitors other then the first.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
src/plugins/splash/two-step/plugin.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/plugins/splash/two-step/plugin.c b/src/plugins/splash/two-step/plugin.c
index 7307e19..924207c 100644
--- a/src/plugins/splash/two-step/plugin.c
+++ b/src/plugins/splash/two-step/plugin.c
@@ -1002,10 +1002,12 @@ add_pixel_display (ply_boot_splash_plugin_t *plugin,
(ply_pixel_display_draw_handler_t)
on_draw, view);
if (plugin->is_visible) {
- if (view_load (view))
+ if (view_load (view)) {
ply_list_append_data (plugin->views, view);
- else
+ view_start_progress_animation (view);
+ } else {
view_free (view);
+ }
} else {
ply_list_append_data (plugin->views, view);
}
--
2.7.4