st

my customized branch of st - synced with upstream git://git.suckless.org/st
git clone git://git.jakekoroman.com/st
Log | Files | Refs | README | LICENSE

commit eab9aad1dcd87ba1721bc63ef987203b7a643c69
parent 2181040594ae63f2821899caba0bef34257a6c2b
Author: Aurélien Aptel <aurelien.aptel@gmail.com>
Date:   Sun, 29 Aug 2010 19:14:05 +0200

added a XFlush() in xbell().

Diffstat:
Mst.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/st.c b/st.c @@ -230,6 +230,7 @@ void xbell(void) { XSetForeground(xw.dis, dc.gc, dc.col[BellCol]); XFillRectangle(xw.dis, xw.win, dc.gc, BORDER, BORDER, xw.bufw, xw.bufh); + XFlush(xw.dis); usleep(BellTime); draw(SCREEN_REDRAW); } @@ -1293,7 +1294,7 @@ run(void) { FD_ZERO(&rfd); FD_SET(cmdfd, &rfd); FD_SET(xfd, &rfd); - if(select(MAX(xfd, cmdfd)+1, &rfd, NULL, NULL, NULL) == -1) { + if(select(MAX(xfd, cmdfd)+1, &rfd, NULL, NULL, NULL) < 0) { if(errno == EINTR) continue; die("select failed: %s\n", SERRNO);