mirror of
https://github.com/alrayyes/st.git
synced 2024-11-25 20:36:23 +00:00
added a XFlush() in xbell().
This commit is contained in:
parent
2181040594
commit
eab9aad1dc
1 changed files with 2 additions and 1 deletions
3
st.c
3
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);
|
||||
|
|
Loading…
Reference in a new issue