| 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 |
|