]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
set redirected, attached to false after tty detach
authorRay Strode <rstrode@redhat.com>
Tue, 11 Nov 2008 19:38:45 +0000 (14:38 -0500)
committerRay Strode <rstrode@redhat.com>
Tue, 11 Nov 2008 19:38:45 +0000 (14:38 -0500)
This makes --show-splash after --hide-splash not look
confused.

src/main.c

index c2ef5683a4bc3172ac63619419e1358225144e7a..a61ab38892d228e3faaa23f16b477e8474716225 100644 (file)
@@ -361,6 +361,7 @@ on_show_splash (state_t *state)
     {
       ply_trace ("no open windows, detaching session");
       ply_terminal_session_detach (state->session);
+      state->is_redirected = false;
       state->is_attached = false;
     }
 
@@ -389,6 +390,7 @@ quit_splash (state_t *state)
       ply_trace ("detaching session");
       ply_terminal_session_detach (state->session);
       state->is_redirected = false;
+      state->is_attached = false;
     }
 }