[gdm/wip/fix-autologin] manager: correct display confusion



commit a3904bf5f9e6fe6bc3bb2ad9c856cf1361b8194d
Author: Ray Strode <rstrode redhat com>
Date:   Mon Oct 1 11:05:57 2018 -0400

    manager: correct display confusion
    
    commit c5c5bf1f reworked autologin and broke it.
    
    This commit addresses the breakage by accessing
    the proper display variable.
    
    Closes https://gitlab.gnome.org/GNOME/gdm/issues/426

 daemon/gdm-manager.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index b1e9b68b..62a96738 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -1689,8 +1689,8 @@ on_start_user_session (StartUserSessionOperation *operation)
                         gdm_display_store_remove (self->priv->display_store, display);
                         g_object_unref (display);
 
-                       self->priv->automatic_login_display = g_object_get_data (G_OBJECT 
(operation->session), "gdm-display");
-                       g_object_add_weak_pointer (G_OBJECT (display), (gpointer *) 
&self->priv->automatic_login_display);
+                        self->priv->automatic_login_display = g_object_get_data (G_OBJECT 
(operation->session), "gdm-display");
+                        g_object_add_weak_pointer (G_OBJECT (self->priv->automatic_login_display), (gpointer 
*) &self->priv->automatic_login_display);
                 }
         }
 


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