From 540ae58fe02600b73a17c7fd80f2fdce42c7087e Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Fri, 8 Nov 2013 08:31:32 -0500 Subject: [PATCH] two-step: fix unlock screen The previous commit introduced a bug where the unlock screen won't get shown if it's requested within the first 5 seconds of startup. This commit fixes that by forcing a redraw if the state switches from NORMAL. --- src/plugins/splash/two-step/plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/splash/two-step/plugin.c b/src/plugins/splash/two-step/plugin.c index 5dca355f..773e9bf4 100644 --- a/src/plugins/splash/two-step/plugin.c +++ b/src/plugins/splash/two-step/plugin.c @@ -925,7 +925,8 @@ on_draw (view_t *view, now = ply_get_timestamp (); - if (now - plugin->start_time < plugin->startup_delay) + if ((now - plugin->start_time < plugin->startup_delay) && + plugin->state == PLY_BOOT_SPLASH_DISPLAY_NORMAL) return; if (view->is_blank) -- 2.47.3