mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +03:00
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.
This commit is contained in:
parent
c2e5d024a3
commit
dfd552707d
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user