Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
patch for bell in st
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
22a1ce6
..
c61b90a
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-27,6
+27,7
@@
#include <X11/cursorfont.h>
#include <X11/keysym.h>
#include <X11/Xft/Xft.h>
#include <X11/cursorfont.h>
#include <X11/keysym.h>
#include <X11/Xft/Xft.h>
+#include <X11/XKBlib.h>
#include <fontconfig/fontconfig.h>
#include <wchar.h>
#include <fontconfig/fontconfig.h>
#include <wchar.h>
@@
-2423,7
+2424,7
@@
tcontrolcode(uchar ascii) {
if(!(xw.state & WIN_FOCUSED))
xseturgency(1);
if (bellvolume)
if(!(xw.state & WIN_FOCUSED))
xseturgency(1);
if (bellvolume)
- X
Bell(xw.dpy, bellvolume
);
+ X
kbBell(xw.dpy, xw.win, bellvolume, (Atom)NULL
);
}
break;
case '\033': /* ESC */
}
break;
case '\033': /* ESC */