uterm_monitor: refresh seats before scanning the system
We currently only scan devices in uterm_monitor_scan() but we should read the initial seat values before even searching for devices. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
c81a83fb3a
commit
fd9a68ae2e
@ -664,6 +664,8 @@ void uterm_monitor_scan(struct uterm_monitor *mon)
|
||||
if (!mon)
|
||||
return;
|
||||
|
||||
monitor_refresh_seats(mon);
|
||||
|
||||
e = udev_enumerate_new(mon->udev);
|
||||
if (!e) {
|
||||
log_err("cannot create udev enumeration");
|
||||
|
Loading…
x
Reference in New Issue
Block a user