diff options
Diffstat (limited to 'src/logind-seat.c')
-rw-r--r-- | src/logind-seat.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/logind-seat.c b/src/logind-seat.c index ed67bc9eea..11b3a65b64 100644 --- a/src/logind-seat.c +++ b/src/logind-seat.c @@ -253,11 +253,15 @@ int seat_set_active(Seat *s, Session *session) { seat_save(s); - if (session) + if (session) { session_save(session); + user_save(session->user); + } - if (old_active) + if (old_active) { session_save(old_active); + user_save(old_active->user); + } return 0; } @@ -340,11 +344,11 @@ int seat_start(Seat *s) { /* Read current VT */ seat_read_active_vt(s); + s->started = true; + /* Save seat data */ seat_save(s); - s->started = true; - seat_send_signal(s, true); return 0; |