[vte] widget: Fix bell timestamp update
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Fix bell timestamp update
- Date: Sun, 4 Mar 2018 10:23:34 +0000 (UTC)
commit 72cdf6e6579917c351ab324dd313d4c51d7e5687
Author: Christian Persch <chpe src gnome org>
Date: Sun Mar 4 11:22:33 2018 +0100
widget: Fix bell timestamp update
Only update the timestamp when emitting the signal, not
every time a bell was pending.
src/vte.cc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 57aa197..9e18df7 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -11085,9 +11085,10 @@ VteTerminalPrivate::emit_pending_signals()
if ((timestamp - m_bell_timestamp) >= VTE_BELL_MINIMUM_TIME_DIFFERENCE) {
beep();
emit_bell();
- }
- m_bell_timestamp = timestamp;
+ m_bell_timestamp = timestamp;
+ }
+
m_bell_pending = false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]