summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-27 23:07:13 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-27 23:07:13 +0200
commite9816c4859454d341279f1c9e77df4af4bacd534 (patch)
tree0525ef417a330ca7900c5b9e66caf32580ae88a5
parentb6f68af13cadcbbfefd38cf8ff9a46553576f3af (diff)
logind: check whether newly created session is active
-rw-r--r--src/logind-session.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/logind-session.c b/src/logind-session.c
index 705b1e41cf..8e35e09069 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) {