/[pkgs]/devel/metacity/0001-bell-increase-bell-rate-limit-from-1-s-to-1-100ms.patch
ViewVC logotype

Contents of /devel/metacity/0001-bell-increase-bell-rate-limit-from-1-s-to-1-100ms.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Fri Aug 28 04:11:49 2009 UTC (2 months, 3 weeks ago) by lennart
Branch: MAIN
CVS Tags: metacity-2_28_0-1_fc12, metacity-2_27_1-1_fc12, F-12-split, metacity-2_27_0-8_fc12, metacity-2_27_0-9_fc12, metacity-2_27_0-6_fc12, metacity-2_27_0-7_fc12, HEAD
File MIME type: text/x-patch
Apply to trivial patches for bell/sound
- http://bugzilla.gnome.org/show_bug.cgi?id=593356
- http://bugzilla.gnome.org/show_bug.cgi?id=593355
1 From 6558e661d22d9c2a70df8ce4bddcea083e61c328 Mon Sep 17 00:00:00 2001
2 From: Lennart Poettering <lennart@poettering.net>
3 Date: Fri, 28 Aug 2009 05:43:14 +0200
4 Subject: [PATCH] bell: increase bell rate limit from 1/s to 1/100ms
5
6 Right now metacity issues only 1 bell event per second. This is
7 feels buggy when triggering multiple alarm sounds in a terminal.
8
9 This patch simple increases the limit to 1/100ms. 100ms is probably a
10 good choice since the HIG recommends that all user reaction should
11 happen within 100ms. With this applied pressing 'Left' in gnome-terminal
12 feels much more responsive.
13
14 https://bugzilla.redhat.com/show_bug.cgi?id=498608
15 ---
16 src/core/display.c | 2 +-
17 1 files changed, 1 insertions(+), 1 deletions(-)
18
19 diff --git a/src/core/display.c b/src/core/display.c
20 index b1661e3..bf22a9e 100644
21 --- a/src/core/display.c
22 +++ b/src/core/display.c
23 @@ -2385,7 +2385,7 @@ event_callback (XEvent *event,
24 {
25 case XkbBellNotify:
26 if (XSERVER_TIME_IS_BEFORE(display->last_bell_time,
27 - xkb_ev->time - 1000))
28 + xkb_ev->time - 100))
29 {
30 display->last_bell_time = xkb_ev->time;
31 meta_bell_notify (display, xkb_ev);
32 --
33 1.6.4
34

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2