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:
David Herrmann 2012-05-05 22:40:32 +02:00
parent c81a83fb3a
commit fd9a68ae2e

View File

@ -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");