From b048eacc9ddc6ca995783411d4df84c23f3a0351 Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Mon, 28 Sep 2015 00:18:35 +0200 Subject: Fix the conversion from microseconds to nanoseconds --- dmenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dmenu.c') diff --git a/dmenu.c b/dmenu.c index aa6e5d8..cf5d976 100644 --- a/dmenu.c +++ b/dmenu.c @@ -203,7 +203,7 @@ drawmenu(void) static void grabkeyboard(void) { - struct timespec ts = { .tv_sec = 1, .tv_nsec = 0 }; + struct timespec ts = { .tv_sec = 0, .tv_nsec = 1000000 }; int i; /* try to grab keyboard, we may have to wait for another process to ungrab */ -- cgit v1.2.3