From e9816c4859454d341279f1c9e77df4af4bacd534 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 27 Jun 2011 23:07:13 +0200 Subject: [PATCH] logind: check whether newly created session is active --- src/logind-session.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/logind-session.c b/src/logind-session.c index 705b1e41..8e35e090 100644 --- a/src/logind-session.c +++ b/src/logind-session.c @@ -511,13 +511,16 @@ int session_start(Session *s) { /* Create X11 symlink */ session_link_x11_socket(s); - /* Save session data */ - session_save(s); - dual_timestamp_get(&s->timestamp); + if (s->seat) + seat_read_active_vt(s->seat); + s->started = true; + /* Save session data */ + session_save(s); + session_send_signal(s, true); if (s->seat) { -- 2.39.5