[main] Deactivate terminal on quit if necessary

If we're done with the VT plymouth was running on,
and plymouth wasn't running on the initial VT, we
should jump back to the initial VT and try to
clean up plymouth's VT.
calculate-0.9.5
Ray Strode 15 years ago
parent 93482b7647
commit 5b518486ce

@ -639,6 +639,11 @@ quit_splash (state_t *state)
if (state->terminal != NULL)
{
if (!state->should_retain_splash)
{
ply_trace ("Not retaining splash, so deallocating VT");
ply_terminal_deactivate_vt (state->terminal);
}
ply_terminal_close (state->terminal);
ply_terminal_free (state->terminal);
state->terminal = NULL;

Loading…
Cancel
Save