xterm/xterm-242-xbell.patch

41 lines
1.2 KiB
Diff
Raw Normal View History

2009-03-02 12:52:20 +00:00
# patch by Thomas E. Dickey <dickey@invisible-island.net>
# created Sat Feb 28 16:00:38 UTC 2009
# ------------------------------------------------------------------------------
# misc.c | 16 +++++++---------
# version.h | 4 ++--
# xterm.log.html | 10 +++++++++-
# 3 files changed, 18 insertions(+), 12 deletions(-)
# ------------------------------------------------------------------------------
Index: misc.c
--- xterm-242+/misc.c 2009-02-13 23:39:29.000000000 +0000
+++ xterm-242a/misc.c 2009-02-28 15:37:30.000000000 +0000
@@ -1,4 +1,4 @@
-/* $XTermId: misc.c,v 1.405 2009/02/13 23:39:29 tom Exp $ */
+/* $XTermId: misc.c,v 1.406 2009/02/28 15:37:30 tom Exp $ */
/*
*
@@ -821,16 +821,14 @@
void
xtermBell(XtermWidget xw, int which, int percent)
{
- if (percent > 0) {
- TScreen *screen = TScreenOf(xw);
+ TScreen *screen = TScreenOf(xw);
#if defined(HAVE_XKB_BELL_EXT)
- Atom tony = AtomBell(xw, which);
- if (tony != None) {
- XkbBell(screen->display, VShellWindow, percent, tony);
- } else
+ Atom tony = AtomBell(xw, which);
+ if (tony != None) {
+ XkbBell(screen->display, VShellWindow, percent, tony);
+ } else
#endif
- XBell(screen->display, percent);
- }
+ XBell(screen->display, percent);
}
void