From 5b518486ce7ed0f44e1c6db54378b784d37134eb Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Mon, 22 Mar 2010 00:13:35 -0400 Subject: [PATCH] [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. --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.c b/src/main.c index df24e594..ac10a789 100644 --- a/src/main.c +++ b/src/main.c @@ -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; -- 2.47.3