commit 312951b9781eec0024a4602fa8f0c7ef8900adcb
parent 51d3f49e04518f847ac2f9409d77c81443beb489
Author: bakkeby <bakkeby@gmail.com>
Date: Tue, 11 Jan 2022 13:51:52 +0100
Proposed change to avoid high CPU usage ref. #7
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/slock.c b/slock.c
@@ -458,6 +458,7 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
}
lasttouched = currenttime;
}
+ usleep(50); // artificial sleep for 50ms
#endif // AUTO_TIMEOUT_PATCH
}
}