]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Tell GDM to start on vt1 for every plugin
authorRay Strode <rstrode@redhat.com>
Fri, 3 Oct 2008 20:39:01 +0000 (16:39 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 3 Oct 2008 20:39:01 +0000 (16:39 -0400)
src/main.c
src/plugins/splash/solar/plugin.c
src/plugins/splash/spinfinity/plugin.c

index 7c782c81351d1bfd185fc67207f3102d2122065b..233872372f1de3caa067c99bf37f4371e2a2688d 100644 (file)
@@ -288,6 +288,17 @@ on_hide_splash (state_t *state)
     }
 }
 
+#ifdef PLY_ENABLE_GDM_TRANSITION
+static void
+tell_gdm_to_transition (void)
+{
+  int fd;
+
+  fd = creat ("/var/spool/gdm/force-display-on-active-vt", 0644);
+  close (fd);
+}
+#endif
+
 static void
 on_quit (state_t *state,
          bool     retain_splash)
@@ -305,6 +316,8 @@ on_quit (state_t *state,
     }
   ply_trace ("exiting event loop");
   ply_event_loop_exit (state->loop, 0);
+
+  tell_gdm_to_transition ();
 }
 
 static ply_boot_server_t *
index b3281034d72e9d6cb8b3af27a7f71b37a126ac04..d81f30e5e58e28da9f75f39ec5025f85eaa36384 100644 (file)
@@ -201,17 +201,6 @@ create_plugin (void)
   return plugin;
 }
 
-#ifdef PLY_ENABLE_GDM_TRANSITION
-static void
-tell_gdm_to_transition (void)
-{
-  int fd;
-
-  fd = creat ("/var/spool/gdm/force-display-on-active-vt", 0644);
-  close (fd);
-}
-#endif
-
 void
 destroy_plugin (ply_boot_splash_plugin_t *plugin)
 {
@@ -248,11 +237,6 @@ destroy_plugin (ply_boot_splash_plugin_t *plugin)
   ply_label_free (plugin->label);
   ply_list_free (plugin->sprites);
 
-#ifdef PLY_ENABLE_GDM_TRANSITION
-  if (plugin->is_visible)
-    tell_gdm_to_transition ();
-#endif
-
   free (plugin);
 }
 
index 95a995e3b9966165fdbb4f061850fff8b6788650..79b1eda1b4875014b8972210519e561f1bda7727 100644 (file)
@@ -110,17 +110,6 @@ create_plugin (void)
   return plugin;
 }
 
-#ifdef PLY_ENABLE_GDM_TRANSITION
-static void
-tell_gdm_to_transition (void)
-{
-  int fd;
-
-  fd = creat ("/var/spool/gdm/force-display-on-active-vt", 0644);
-  close (fd);
-}
-#endif
-
 void
 destroy_plugin (ply_boot_splash_plugin_t *plugin)
 {
@@ -143,11 +132,6 @@ destroy_plugin (ply_boot_splash_plugin_t *plugin)
   ply_label_free (plugin->label);
   ply_progress_bar_free (plugin->progress_bar);
 
-#ifdef PLY_ENABLE_GDM_TRANSITION
-  if (plugin->is_visible)
-    tell_gdm_to_transition ();
-#endif
-
   free (plugin);
 }