diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/globals.c | 2 | ||||
-rw-r--r-- | src/input.c | 9 |
3 files changed, 2 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac index 35cbbe0..982b74f 100644 --- a/configure.ac +++ b/configure.ac @@ -150,7 +150,7 @@ dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for library functions. AC_CHECK_FUNCS(getline getopt_long setenv setpgid setpgrp setsid) -AC_CHECK_FUNCS(unsetenv usleep vsnprintf) +AC_CHECK_FUNCS(unsetenv vsnprintf) AM_LANGINFO_CODESET diff --git a/src/globals.c b/src/globals.c index 05ebe28..233f2ae 100644 --- a/src/globals.c +++ b/src/globals.c @@ -20,7 +20,7 @@ #include "ratpoison.h" -#include <unistd.h> /* for usleep(). */ +#include <unistd.h> int alarm_signalled = 0; int kill_signalled = 0; diff --git a/src/input.c b/src/input.c index 5757bf7..240cfed 100644 --- a/src/input.c +++ b/src/input.c @@ -503,17 +503,8 @@ ring_bell (void) XFillRectangle (dpy, s->input_window, lgc, 0, 0, attr.width, attr.height); XFlush (dpy); -#ifdef HAVE_USLEEP usleep (15000); -#else - { - struct timeval tv; - tv.tv_sec = 0; - tv.tv_usec = 15000; - select (0, NULL, NULL, NULL, &tv); - } -#endif XFillRectangle (dpy, s->input_window, lgc, 0, 0, attr.width, attr.height); XFlush (dpy); XFreeGC (dpy, lgc); |