diff options
author | msizanoen <msizanoen@qtmlabs.xyz> | 2023-05-08 22:17:35 +0700 |
---|---|---|
committer | msizanoen <msizanoen@qtmlabs.xyz> | 2023-05-08 22:20:02 +0700 |
commit | 721c5d89ee67034a6267123671902b60fe43ddef (patch) | |
tree | 942272f4f2277e2f9f6be950e346c4f730c69726 | |
parent | 208cc826a71e8c0f3cd33f5711c78fc3cc85e2e4 (diff) | |
download | gdm-721c5d89ee67034a6267123671902b60fe43ddef.tar.gz |
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.
-rw-r--r-- | daemon/gdm-local-display-factory.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |