diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-11-26 09:28:02 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-11-26 09:28:02 +0100 |
commit | c8a37d523e0cea3b0ca4ef790dade4eb4b95d1ad (patch) | |
tree | dcf5db7f7356e7b1146c675fd1f494726e2d56ee /src | |
parent | b4d756008ca98e454904c64e151ae08e4e0f733f (diff) | |
download | ratpoison-c8a37d523e0cea3b0ca4ef790dade4eb4b95d1ad.zip |
Don't check for usleep, useless since Dec. 2004
* see 9cb1a3d. If your system doesn't provide usleep or ratpoison
doesn't manage to find it, please report back.
Diffstat (limited to 'src')
-rw-r--r-- | src/globals.c | 2 | ||||
-rw-r--r-- | src/input.c | 9 |
2 files changed, 1 insertions, 10 deletions
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); |