diff options
author | Quentin Rameau <quinq@fifth.space> | 2015-09-28 00:18:35 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-09-28 00:27:09 +0200 |
commit | b048eacc9ddc6ca995783411d4df84c23f3a0351 (patch) | |
tree | c5e3be0188e30f35397c67dd05ca5413d8b0d059 | |
parent | c42c3780274e6b12eaeab918cf7c13d2c36cf253 (diff) |
Fix the conversion from microseconds to nanoseconds
-rw-r--r-- | dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -203,7 +203,7 @@ drawmenu(void) | |||
203 | static void | 203 | static void |
204 | grabkeyboard(void) | 204 | grabkeyboard(void) |
205 | { | 205 | { |
206 | struct timespec ts = { .tv_sec = 1, .tv_nsec = 0 }; | 206 | struct timespec ts = { .tv_sec = 0, .tv_nsec = 1000000 }; |
207 | int i; | 207 | int i; |
208 | 208 | ||
209 | /* try to grab keyboard, we may have to wait for another process to ungrab */ | 209 | /* try to grab keyboard, we may have to wait for another process to ungrab */ |