Fix the conversion from microseconds to nanoseconds - dmenu - dynamic menu
HTML git clone git://git.suckless.org/dmenu
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit b048eacc9ddc6ca995783411d4df84c23f3a0351
DIR parent c42c3780274e6b12eaeab918cf7c13d2c36cf253
HTML Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 28 Sep 2015 00:18:35 +0200
Fix the conversion from microseconds to nanoseconds
Diffstat:
M dmenu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git 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 */