X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flogind-seat.c;h=3cf3958c8d47330d13cac925573238713a54ef55;hp=b8f1f607d09f8f13eab19849aed3db306d966784;hb=a3c159a23c7cae889f89ed69bbe82c272bf163ca;hpb=1c9a2c1047a6387e0f22801c72760d0d282960d5 diff --git a/src/logind-seat.c b/src/logind-seat.c index b8f1f607d..3cf3958c8 100644 --- a/src/logind-seat.c +++ b/src/logind-seat.c @@ -446,10 +446,10 @@ int seat_get_idle_hint(Seat *s, dual_timestamp *t) { return idle_hint; } -int seat_check_gc(Seat *s) { +int seat_check_gc(Seat *s, bool drop_not_started) { assert(s); - if (!s->started) + if (drop_not_started && !s->started) return 0; if (seat_is_vtconsole(s))