]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
two-step: Fix animation not starting on later added heads
authorHans de Goede <hdegoede@redhat.com>
Mon, 12 Nov 2018 11:50:33 +0000 (12:50 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 12 Nov 2018 13:57:18 +0000 (14:57 +0100)
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

index 7307e192f81ad5ac9b272a17d3550c8cb8d97569..924207cb3200534e879739e83b595870665a6f7a 100644 (file)
@@ -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);
         }