chiark / gitweb /
udev: check return value of write
[elogind.git] / src / login / logind-seat.c
index c2cf6e5e137147c5e07c18d92e7d88103b3b09ce..0ae0c520e6d564bfd5a993874d4419d1f98ba2cf 100644 (file)
@@ -471,7 +471,7 @@ int seat_get_idle_hint(Seat *s, dual_timestamp *t) {
 
                 if (!ih) {
                         if (!idle_hint) {
-                                if (k.monotonic < ts.monotonic)
+                                if (k.monotonic > ts.monotonic)
                                         ts = k;
                         } else {
                                 idle_hint = false;