[vte] Emit beep on the window instead of the display
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] Emit beep on the window instead of the display
- Date: Wed, 19 Jul 2017 17:37:51 +0000 (UTC)
commit 723ea607ae49f61b2f23af8c7ea43144e9acfb69
Author: Benjamin Berg <bberg redhat com>
Date: Wed Jul 19 16:44:46 2017 +0200
Emit beep on the window instead of the display
This means that in GNOME when enabling visual flash (in a11y) then only
the gnome-terminal frame will flash instead of the whole screen. Having
the whole screen flash is really disrupting and almost all the time the
reason for the flash is e.g. tab completion kicking in.
src/vte.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index df1220e..39510a7 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -4578,8 +4578,8 @@ void
VteTerminalPrivate::beep()
{
if (m_audible_bell) {
- GdkDisplay *display = gtk_widget_get_display(m_widget);
- gdk_display_beep(display);
+ GdkWindow *window = gtk_widget_get_window(m_widget);
+ gdk_window_beep(window);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]