summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2019-02-02 12:07:36 +0100
committerDave Davenport <qball@gmpclient.org>2019-02-02 12:07:36 +0100
commit2f2abffb98b15daa800841d1a0f971d3b703edf6 (patch)
tree4f23447d0539e87fa65fa3e079efabe16963fdeb /source
parent804f130d5b5a64775379f785acd928d64d108851 (diff)
[CodeCY] More cleanup.
Diffstat (limited to 'source')
-rw-r--r--source/xcb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/xcb.c b/source/xcb.c
index ffe47cd6..98783325 100644
--- a/source/xcb.c
+++ b/source/xcb.c
@@ -1018,7 +1018,11 @@ static int take_keyboard ( xcb_window_t w, int iters )
if ( ( ++i ) > iters ) {
break;
}
- usleep ( 1000 );
+ struct timespec del = {
+ .tv_sec = 0,
+ .tv_nsec = 1000000
+ };
+ nanosleep ( &del, NULL );
}
return 0;
}