From: Ray Strode Date: Sat, 13 Sep 2008 17:57:38 +0000 (-0400) Subject: Track visibility state of spinfinity plugin X-Git-Tag: 0.6.0~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d492071d7adeb4e672f304256e9809a342d08c5;p=thirdparty%2Fplymouth.git Track visibility state of spinfinity plugin If it's still visible when it's destroyed, we'll want to tell GDM to do a smooth transition. --- diff --git a/src/plugins/splash/spinfinity/plugin.c b/src/plugins/splash/spinfinity/plugin.c index 5c69b91e..8dc33c76 100644 --- a/src/plugins/splash/spinfinity/plugin.c +++ b/src/plugins/splash/spinfinity/plugin.c @@ -77,6 +77,7 @@ struct _ply_boot_splash_plugin ply_answer_t *pending_password_answer; uint32_t root_is_mounted : 1; + uint32_t is_visible : 1; }; static void detach_from_event_loop (ply_boot_splash_plugin_t *plugin); @@ -392,6 +393,8 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin, ply_trace ("starting boot animation"); start_animation (plugin); + plugin->is_visible = true; + return true; } @@ -431,6 +434,7 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin, } plugin->frame_buffer = NULL; + plugin->is_visible = false; } static void