X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flogin%2Flogind-session.c;h=30380ae52f9426f69154da98cd40787f3112676f;hp=8950c719058c3f6737cbb8393d22e042df7f796f;hb=b5132cc290ef609fb7a84adb8130526fb433c291;hpb=329f95e0485eb22e4c869d5d9a8f42e5d4d02eda diff --git a/src/login/logind-session.c b/src/login/logind-session.c index 8950c7190..30380ae52 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -630,6 +630,9 @@ int session_stop(Session *s, bool force) { s->timer_event_source = sd_event_source_unref(s->timer_event_source); + if (s->seat) + seat_evict_position(s->seat, s); + /* We are going down, don't care about FIFOs anymore */ session_remove_fifo(s); @@ -666,6 +669,9 @@ int session_finalize(Session *s) { s->timer_event_source = sd_event_source_unref(s->timer_event_source); + if (s->seat) + seat_evict_position(s->seat, s); + /* Kill session devices */ while ((sd = hashmap_first(s->devices))) session_device_free(sd);