[gdm] session worker: fix one more _MODE_NEW_VT case



commit bbb0adfca5850306693e2c0b3594d01d65b1fd57
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Mar 19 18:33:20 2014 -0400

    session worker: fix one more _MODE_NEW_VT case
    
    The previous patch missed one case of GDM_SESSION_DISPLAY_MODE_NEW_VT,
    resulting in an undefined reference to jump_to_vt().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726380

 daemon/gdm-session-worker.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 942fedc..39f14cf 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -1806,12 +1806,14 @@ gdm_session_worker_start_session (GdmSessionWorker  *worker,
 
         error_code = PAM_SUCCESS;
 
+#ifdef ENABLE_WAYLAND_SUPPORT
         /* If we're in new vt mode, jump to the new vt now. There's no need to jump for
          * the other two modes: in the logind case, the session will activate itself when
          * ready, and in the reuse server case, we're already on the correct VT. */
         if (worker->priv->display_mode == GDM_SESSION_DISPLAY_MODE_NEW_VT) {
                 jump_to_vt (worker, worker->priv->session_vt);
         }
+#endif
 
         session_pid = fork ();
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]