summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-08-28 05:43:14 +0200
committerRay Strode <rstrode@redhat.com>2009-11-20 11:36:10 -0500
commit2dd137329d7062a32edf20f87e39439ee2cc79c9 (patch)
treeed95d22670b50bb493f8018f4ddfd998476e79ea /src
parentdb37deb589ea6d65611fb27ab1908196ad5d1930 (diff)
downloadmetacity-2dd137329d7062a32edf20f87e39439ee2cc79c9.tar.gz
metacity-2dd137329d7062a32edf20f87e39439ee2cc79c9.tar.bz2
bell: increase bell rate limit from 1/s to 1/100ms
Right now metacity issues only 1 bell event per second. This is feels buggy when triggering multiple alarm sounds in a terminal. This patch simple increases the limit to 1/100ms. 100ms is probably a good choice since the HIG recommends that all user reaction should happen within 100ms. With this applied pressing 'Left' in gnome-terminal feels much more responsive. https://bugzilla.redhat.com/show_bug.cgi?id=498608
Diffstat (limited to 'src')
-rw-r--r--src/core/display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/display.c b/src/core/display.c
index 55c374a..11ea669 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -2385,7 +2385,7 @@ event_callback (XEvent *event,
{
case XkbBellNotify:
if (XSERVER_TIME_IS_BEFORE(display->last_bell_time,
- xkb_ev->time - 1000))
+ xkb_ev->time - 100))
{
display->last_bell_time = xkb_ev->time;
meta_bell_notify (display, xkb_ev);