chiark / gitweb /
logind: send PropertyChanged during deactivation
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 1 Oct 2013 15:58:58 +0000 (17:58 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 1 Oct 2013 15:58:58 +0000 (17:58 +0200)
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.

src/login/logind-seat.c

index 4a4d40adca770c076525f6db31dc58d223eaa812..feebcf4558febcb23e44ccaf0b07f88f1ba0b832 100644 (file)
@@ -246,8 +246,10 @@ int seat_set_active(Seat *s, Session *session) {
         old_active = s->active;
         s->active = session;
 
         old_active = s->active;
         s->active = session;
 
-        if (old_active)
+        if (old_active) {
                 session_device_pause_all(old_active);
                 session_device_pause_all(old_active);
+                session_send_changed(old_active, "Active\0");
+        }
 
         seat_apply_acls(s, old_active);
 
 
         seat_apply_acls(s, old_active);