Xinqi Bao's Git
projects
/
dmenu.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Fix the conversion from microseconds to nanoseconds
[dmenu.git]
/
dmenu.c
diff --git
a/dmenu.c
b/dmenu.c
index
aa6e5d8
..
cf5d976
100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-203,7
+203,7
@@
drawmenu(void)
static void
grabkeyboard(void)
{
static void
grabkeyboard(void)
{
- struct timespec ts = { .tv_sec =
1, .tv_nsec =
0 };
+ struct timespec ts = { .tv_sec =
0, .tv_nsec = 100000
0 };
int i;
/* try to grab keyboard, we may have to wait for another process to ungrab */
int i;
/* try to grab keyboard, we may have to wait for another process to ungrab */