From a83d1e1ee04278042d91277f7a81df81c221976f Mon Sep 17 00:00:00 2001 From: winnerym100 Date: Wed, 23 Apr 2025 13:39:16 +0800 Subject: [PATCH] fix(seat stop): when is stoping and the new seat not yet add to seats,need call stop the new seat Description: when is stoping and the new seat not yet add to seats,need call stop the new seat Log: null --- src/display-manager.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/display-manager.c b/src/display-manager.c index 0dd1783aa..6b7134341 100644 --- a/src/display-manager.c +++ b/src/display-manager.c @@ -118,6 +118,12 @@ display_manager_add_seat (DisplayManager *manager, Seat *seat) g_signal_connect (seat, SEAT_SIGNAL_STOPPED, G_CALLBACK (seat_stopped_cb), manager); g_signal_emit (manager, signals[SEAT_ADDED], 0, seat); + // when is stoping and the new seat not yet add to seats,need call stop the new seat + if (priv->stopping) { + g_debug ("Stopping new started seat"); + seat_stop (seat); + } + return TRUE; }