]> git.armaanb.net Git - dmenu.git/commitdiff
Fix the conversion from microseconds to nanoseconds
authorQuentin Rameau <quinq@fifth.space>
Sun, 27 Sep 2015 22:18:35 +0000 (00:18 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 27 Sep 2015 22:27:09 +0000 (00:27 +0200)
dmenu.c

diff --git a/dmenu.c b/dmenu.c
index aa6e5d8ef1cca02c25f6c1468f3fac4b463176f3..cf5d97655d03db9cac670352dee971708813cb6f 100644 (file)
--- 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 */