]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: detach from keyboard on hide-splash
authorRay Strode <rstrode@redhat.com>
Thu, 6 Feb 2014 20:22:54 +0000 (15:22 -0500)
committerRay Strode <rstrode@redhat.com>
Thu, 6 Feb 2014 20:22:54 +0000 (15:22 -0500)
Currently plymouth stays in control of the terminal
after hide-splash.  This is wrong.  Once plymouth is
hidden, the terminal should be free to use for other
programs.

This commit makes sure we free up the terminal on
hide splash.

src/main.c

index 1f9f6dd5d63e8b8db398ccbe25f84d6f7d0124d6..92a1cfd3a14223b6b9ea6f72d448000f42f2749b 100644 (file)
@@ -1062,12 +1062,15 @@ quit_splash (state_t *state)
       state->boot_splash = NULL;
     }
 
+  ply_device_manager_deactivate_keyboards (state->device_manager);
+
   if (state->local_console_terminal != NULL)
     {
       if (!state->should_retain_splash)
         {
           ply_trace ("Not retaining splash, so deallocating VT");
           ply_terminal_deactivate_vt (state->local_console_terminal);
+          ply_terminal_close (state->local_console_terminal);
         }
     }