[gdm/rhel-7.9: 9/51] manager: start login screen if old one is finished




commit 90b1bc38887488b509a43c509af22a2fb684eec6
Author: Ray Strode <rstrode redhat com>
Date:   Fri Jun 22 14:55:39 2018 -0400

    manager: start login screen if old one is finished
    
    Since commit 22c332ba we try to start a login screen if we end up
    on an empty VT and there isn't one running.
    
    Unfortunately the check for "is on an empty VT" is a little busted.
    It counts the VT has non-empty if there's a display associated with
    it, even if that display is in the FINISHED state about to be
    reaped.
    
    That means, in some cases, we'll still leave the user on an empty
    VT with no login screen.
    
    This commit addresses the problem by explicitly checking for
    FINISHED displays, and proceeding even in their presense.

 daemon/gdm-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index 129cc0de4..3f5772e65 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -1437,7 +1437,7 @@ maybe_activate_other_session (GdmManager *self,
                                                   lookup_by_session_id,
                                                   (gpointer) session_id);
 
-                if (display == NULL) {
+                if (display == NULL || gdm_display_get_status (display) == GDM_DISPLAY_FINISHED) {
                         activate_login_window_session_on_seat (self, seat_id);
                 }
 


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