]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[main] Deactivate terminal on quit if necessary
authorRay Strode <rstrode@redhat.com>
Mon, 22 Mar 2010 04:13:35 +0000 (00:13 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 22 Mar 2010 04:21:43 +0000 (00:21 -0400)
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

index df24e5941f3c121cfc05f6cadcda7580bdd3c500..ac10a7897f35ca72f0f8dc9771f2718e654c2ddb 100644 (file)
@@ -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;