mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 14:48:01 +02:00
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:
parent
a90c56ce73
commit
8d492071d7
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue