]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: call update_display when splash is shown
authorRay Strode <rstrode@redhat.com>
Thu, 6 Mar 2014 15:02:21 +0000 (10:02 -0500)
committerRay Strode <rstrode@redhat.com>
Thu, 6 Mar 2014 15:07:05 +0000 (10:07 -0500)
we need to call update display any time a splash is shown,
because there may be a pending password request.

The code attempted to do this in show_splash, but did it before
the splash was assigned to running state, so function was a noop.

This commit moves it a little later in code after the splash is
properly assigned.

src/main.c

index 92a1cfd3a14223b6b9ea6f72d448000f42f2749b..e8d852eda6f49ea9b0966b78808a02d0366ab5af 100644 (file)
@@ -321,6 +321,7 @@ show_detailed_splash (state_t *state)
     }
 
   state->boot_splash = splash;
+  update_display (state);
 }
 
 static const char *
@@ -477,6 +478,8 @@ show_default_splash (state_t *state)
       ply_error ("plymouthd: could not start boot splash: %m");
       return;
     }
+
+  update_display (state);
 }
 
 static void
@@ -1712,7 +1715,6 @@ show_theme (state_t           *state,
 
   ply_device_manager_activate_keyboards (state->device_manager);
   show_messages (state);
-  update_display (state);
 
   return splash;
 }