summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2014-02-06 15:22:54 -0500
committerRay Strode <rstrode@redhat.com>2014-02-06 15:22:54 -0500
commitfea0252399bf9d13e88b27b7296f263732f180fc (patch)
treea748bb332763c0def18c5d617f1dd3787680b3a4
parent1628320b093e3605e91f0aa7183b6859920a0a85 (diff)
main: detach from keyboard on hide-splash
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.
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 1f9f6dd5..92a1cfd3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);
}
}