Fix the conversion from microseconds to nanoseconds b048eacc
Quentin Rameau · 2015-09-28 00:18 1 file(s) · +1 −1
dmenu.c +1 −1
203 203
static void
204 204
grabkeyboard(void)
205 205
{
206 -
	struct timespec ts = { .tv_sec = 1, .tv_nsec = 0  };
206 +
	struct timespec ts = { .tv_sec = 0, .tv_nsec = 1000000  };
207 207
	int i;
208 208
209 209
	/* try to grab keyboard, we may have to wait for another process to ungrab */