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.
This commit is contained in:
Ray Strode 2008-09-13 13:57:38 -04:00
parent a90c56ce73
commit 8d492071d7

View 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