diff options
author | Roberto E. Vargas Caballero <rvargas@bsccs347.bsc.es> | 2013-09-12 20:41:34 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2013-09-12 20:47:41 +0200 |
commit | bef599bb279e6c9b08853ceebefade066e362c48 (patch) | |
tree | ce96a76ce068374ab125d5b198a16677aa830e96 /st.c | |
parent | 210dda9570095443bac887c2bfcd75f2bcc23780 (diff) | |
download | st-bef599bb279e6c9b08853ceebefade066e362c48.tar.gz st-bef599bb279e6c9b08853ceebefade066e362c48.tar.bz2 |
Add audible bell
\a is the character for bell, and st is only marking the window as urgent
if it is not active. This patch adds an audible bell which can be disable
with bellvolume variable.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2320,6 +2320,8 @@ tputc(char *c, int len) { case '\a': /* BEL */ if(!(xw.state & WIN_FOCUSED)) xseturgency(1); + if (bellvolume) + XBell(xw.dpy, bellvolume); return; case '\033': /* ESC */ csireset(); |