From: Quentin Rameau Date: Sun, 27 Sep 2015 22:18:35 +0000 (+0200) Subject: Fix the conversion from microseconds to nanoseconds X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=b048eacc9ddc6ca995783411d4df84c23f3a0351;p=dmenu.git Fix the conversion from microseconds to nanoseconds --- 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 */