diff options
| author | Ray Strode <rstrode@redhat.com> | 2008-06-04 16:36:56 -0400 |
|---|---|---|
| committer | Ray Strode <rstrode@redhat.com> | 2008-06-04 16:36:56 -0400 |
| commit | 6ab3f42dd7ae04510c4cadf8fadcfd22275bfee1 (patch) | |
| tree | a6af1200e4e3c4715311ad3757eebbdddb3c99c6 /src | |
| parent | ded60a7900b9c6cb20d2ef905d59d049e8b01750 (diff) | |
Adapt boot splash test program to take a vt to switch to
Diffstat (limited to 'src')
| -rw-r--r-- | src/ply-boot-splash.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ply-boot-splash.c b/src/ply-boot-splash.c index a4dbf14..8ccaf6c 100644 --- a/src/ply-boot-splash.c +++ b/src/ply-boot-splash.c @@ -329,7 +329,7 @@ main (int argc, else module_name = "../splash-plugins/fade-in/.libs/fade-in.so"; - state.window = ply_window_new (0); + state.window = ply_window_new (argc > 2? atoi (argv[2]) : 0); if (!ply_window_open (state.window)) { @@ -337,6 +337,12 @@ main (int argc, return errno; } + if (!ply_window_take_console (state.window)) + { + perror ("could not switch console to window vt"); + return errno; + } + ply_window_attach_to_event_loop (state.window, state.loop); ply_window_set_escape_handler (state.window, (ply_window_escape_handler_t) on_quit, &state); |
