]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Track visibility state of spinfinity plugin
authorRay Strode <rstrode@redhat.com>
Sat, 13 Sep 2008 17:57:38 +0000 (13:57 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 23 Sep 2008 18:29:38 +0000 (14:29 -0400)
If it's still visible when it's destroyed,
we'll want to tell GDM to do a smooth
transition.

src/plugins/splash/spinfinity/plugin.c

index 5c69b91e4e8bfda4a2b4d592a17d7c2305c8d577..8dc33c7692cd7452b52199efe5f92ea5a4d08906 100644 (file)
@@ -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