X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogind-seat.c;h=3cf3958c8d47330d13cac925573238713a54ef55;hb=64685e0cea62b4937f0804e47ce2cb7929f58223;hp=b8f1f607d09f8f13eab19849aed3db306d966784;hpb=1c9a2c1047a6387e0f22801c72760d0d282960d5;p=elogind.git 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))