From fd9a68ae2ebaa0609c82323e9dd56763c478ac74 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sat, 5 May 2012 22:40:32 +0200 Subject: [PATCH] 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 --- src/uterm_monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uterm_monitor.c b/src/uterm_monitor.c index 7150b95..6e16f59 100644 --- a/src/uterm_monitor.c +++ b/src/uterm_monitor.c @@ -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");