[hackers] [dmenu] Fix the conversion from microseconds to nanoseconds || Quentin Rameau
commit b048eacc9ddc6ca995783411d4df84c23f3a0351
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Mon Sep 28 00:18:35 2015 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Mon Sep 28 00:27:09 2015 +0200
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
_AT_@ -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 */
Received on Mon Sep 28 2015 - 00:29:38 CEST
This archive was generated by hypermail 2.3.0
: Mon Sep 28 2015 - 00:36:11 CEST