This commit is contained in:
Miroslav Lichvar 2009-03-02 12:52:20 +00:00
parent 2e3a410175
commit ad505bb91e
2 changed files with 46 additions and 1 deletions

40
xterm-242-xbell.patch Normal file
View File

@ -0,0 +1,40 @@
# 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

View File

@ -1,7 +1,7 @@
Summary: Terminal emulator for the X Window System
Name: xterm
Version: 242
Release: 2%{?dist}
Release: 3%{?dist}
URL: http://dickey.his.com/xterm
License: MIT
Group: User Interface/X
@ -16,6 +16,7 @@ Source2: %{name}.desktop
Patch1: xterm-242-resources.patch
Patch2: xterm-222-can-2003-0063.patch
Patch3: xterm-226-man-page_paths.patch
Patch4: xterm-242-xbell.patch
%bcond_with trace
@ -32,6 +33,7 @@ programs that can't use the window system directly.
%patch1 -p1 -b .resources
%patch2 -p1 -b .can-2003-0063
%patch3 -p1 -b .man-page_paths
%patch4 -p1 -b .xbell
%build
%configure \
@ -82,6 +84,9 @@ rm -rf $RPM_BUILD_ROOT
%{x11_app_defaults_dir}/XTerm-color
%changelog
* Mon Mar 02 2009 Miroslav Lichvar <mlichvar@redhat.com> 242-3
- fix bell (#487829)
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 242-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild