summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2017-07-19 16:44:46 +0200
committerBenjamin Berg <bberg@redhat.com>2017-07-19 16:47:20 +0200
commit723ea607ae49f61b2f23af8c7ea43144e9acfb69 (patch)
treee11df0fdfc468baaf0915a8f048b404aa407e250
parentfa3bc86008cfe517dbb05deb4dff0059f3749c95 (diff)
downloadvte-723ea607ae49f61b2f23af8c7ea43144e9acfb69.tar.gz
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.
-rw-r--r--src/vte.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vte.cc b/src/vte.cc
index df1220e1..39510a7d 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);
}
}