summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-10-01 17:58:58 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2013-10-01 17:58:58 +0200
commitdfd552707d43087a1e0079cdae9f5290e14b78e9 (patch)
tree08614fb857ae61962e7cd20609cf7ab142b1ec46
parentc2e5d024a380bae6ead301fb4f40787b372ec3e0 (diff)
downloadsystemd-dfd552707d43087a1e0079cdae9f5290e14b78e9.tar.gz
logind: send PropertyChanged during deactivation
We only send the PropertyChanged signal for the to-be-activated session but not for the to-be-deactivated one. Fix that so both listeners get notified about the new state.
-rw-r--r--src/login/logind-seat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c
index 4a4d40adca..feebcf4558 100644
--- a/src/login/logind-seat.c
+++ b/src/login/logind-seat.c
@@ -246,8 +246,10 @@ int seat_set_active(Seat *s, Session *session) {
old_active = s->active;
s->active = session;
- if (old_active)
+ if (old_active) {
session_device_pause_all(old_active);
+ session_send_changed(old_active, "Active\0");
+ }
seat_apply_acls(s, old_active);