]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Reset colors and show text cursor on remove_window
authorRay Strode <rstrode@redhat.com>
Wed, 5 Nov 2008 19:09:26 +0000 (14:09 -0500)
committerRay Strode <rstrode@redhat.com>
Wed, 5 Nov 2008 19:09:26 +0000 (14:09 -0500)
Now that we retain the splash on screen and don't
explicitly hide it on quit, we need to make sure
that we leave the window as we found it when we
remove the window from the splash.

src/plugins/splash/pulser/plugin.c
src/plugins/splash/text/plugin.c

index 089edb9dee519f7531c2090b3ec1886d25f2dd56..fcf6ee5bf0bbbe0d1084938c394521e7afc0e1bd 100644 (file)
@@ -228,6 +228,9 @@ void
 remove_window (ply_boot_splash_plugin_t *plugin,
                ply_window_t             *window)
 {
+  ply_window_show_text_cursor (plugin->window);
+  ply_window_reset_colors (plugin->window);
+
   plugin->window = NULL;
 }
 
@@ -308,8 +311,6 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
 
       ply_window_set_background_color (plugin->window, PLY_WINDOW_COLOR_DEFAULT);
       ply_window_clear_screen (plugin->window);
-      ply_window_show_text_cursor (plugin->window);
-      ply_window_reset_colors (plugin->window);
     }
 }
 
index 500ca9126cc7d3ac04dcfbe81fdb85da96dcc2bc..a27abc61acf8a0cf0655a9db78dffda6b6484afb 100644 (file)
@@ -234,6 +234,9 @@ void
 remove_window (ply_boot_splash_plugin_t *plugin,
                ply_window_t             *window)
 {
+  ply_window_show_text_cursor (plugin->window);
+  ply_window_reset_colors (plugin->window);
+
   plugin->window = NULL;
 }
 
@@ -333,8 +336,6 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
 
       ply_window_set_background_color (plugin->window, PLY_WINDOW_COLOR_DEFAULT);
       ply_window_clear_screen (plugin->window);
-      ply_window_show_text_cursor (plugin->window);
-      ply_window_reset_colors (plugin->window);
     }
 }