~kris/suckless

slock

312951b9781eec0024a4602fa8f0c7ef8900adcb — bakkeby 4 years ago 51d3f49
Proposed change to avoid high CPU usage ref. #7
1 files changed, 1 insertions(+), 0 deletions(-)

M slock.c
M slock.c => slock.c +1 -0
@@ 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
	}
}