aboutsummaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2015-09-28 00:18:35 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-09-28 00:27:09 +0200
commitb048eacc9ddc6ca995783411d4df84c23f3a0351 (patch)
treec5e3be0188e30f35397c67dd05ca5413d8b0d059 /dmenu.c
parentc42c3780274e6b12eaeab918cf7c13d2c36cf253 (diff)
downloaddmenu-b048eacc9ddc6ca995783411d4df84c23f3a0351.tar.gz
dmenu-b048eacc9ddc6ca995783411d4df84c23f3a0351.tar.bz2
dmenu-b048eacc9ddc6ca995783411d4df84c23f3a0351.zip
Fix the conversion from microseconds to nanoseconds
Diffstat (limited to 'dmenu.c')
-rw-r--r--dmenu.c2
1 files changed, 1 insertions, 1 deletions
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 */