[mutter] bell: increase bell rate limit from 1/s to 1/100ms
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mutter] bell: increase bell rate limit from 1/s to 1/100ms
- Date: Thu, 11 Feb 2010 17:05:06 +0000 (UTC)
commit 11addbe9c8b8045f5bd15da06ffad80b27f8e5fe
Author: Lennart Poettering <lennart poettering net>
Date: Fri Aug 28 05:43:14 2009 +0200
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
https://bugzilla.gnome.org/show_bug.cgi?id=609585
src/core/display.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 99b7159..6d074d1 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -2589,7 +2589,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]