From: Ray Strode Date: Thu, 1 Nov 2012 21:16:07 +0000 (-0400) Subject: two-step: don't update progress when idle X-Git-Tag: 0.9.0~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3548ebaf76d222f56d6a7b34c5940b930d47609;p=thirdparty%2Fplymouth.git two-step: don't update progress when idle We've already reach a state where we aren't drawing anymore, etc, so don't update progress and potentially fire off animations that won't be seen. --- diff --git a/src/plugins/splash/two-step/plugin.c b/src/plugins/splash/two-step/plugin.c index 2998beb7..541a108d 100644 --- a/src/plugins/splash/two-step/plugin.c +++ b/src/plugins/splash/two-step/plugin.c @@ -1067,6 +1067,9 @@ on_boot_progress (ply_boot_splash_plugin_t *plugin, if (plugin->state != PLY_BOOT_SPLASH_DISPLAY_NORMAL) return; + if (plugin->is_idle) + return; + if (percent_done >= SHOW_ANIMATION_PERCENT) { if (plugin->stop_trigger == NULL)