From 721c5d89ee67034a6267123671902b60fe43ddef Mon Sep 17 00:00:00 2001 From: msizanoen Date: Mon, 8 May 2023 22:17:35 +0700 Subject: local-display-factory: Only check current VT for respawn on seat0 There's no reason that seat0 having the initial VT on foreground should trigger ensuring display on unrelated seats. Fix this by only checking for the current VT if the newly ended session belongs to seat0. --- daemon/gdm-local-display-factory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/gdm-local-display-factory.c b/daemon/gdm-local-display-factory.c index e8fb4779..d3fee2cb 100644 --- a/daemon/gdm-local-display-factory.c +++ b/daemon/gdm-local-display-factory.c @@ -556,7 +556,7 @@ on_display_status_changed (GdmDisplay *display, if (is_local && ((g_strcmp0 (session_class, "greeter") != 0 && (!seat_active_session || g_strcmp0(session_id, seat_active_session) == 0)) || - factory->active_vt == GDM_INITIAL_VT || + (g_strcmp0 (seat_id, "seat0") == 0 && factory->active_vt == GDM_INITIAL_VT) || g_strcmp0 (seat_id, "seat0") != 0)) { /* reset num failures */ factory->num_failures = 0; -- cgit v1.2.1