logind: minor simplification

This commit is contained in:
Lennart Poettering 2020-09-11 18:02:07 +02:00
parent 5501da15ba
commit 40771cf524
1 changed files with 3 additions and 4 deletions

View File

@ -735,10 +735,9 @@ int session_start(Session *s, sd_bus_message *properties, sd_bus_error *error) {
/* Send signals */
session_send_signal(s, true);
user_send_changed(s->user, "Display", NULL);
if (s->seat) {
if (s->seat->active == s)
seat_send_changed(s->seat, "ActiveSession", NULL);
}
if (s->seat && s->seat->active == s)
seat_send_changed(s->seat, "ActiveSession", NULL);
return 0;
}