aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 033b1da5685..60f4c8850fc 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -830,6 +830,9 @@ XTflash (f)
830 830
831XTring_bell () 831XTring_bell ()
832{ 832{
833 if (x_current_display == 0)
834 return;
835
833#if defined (HAVE_TIMEVAL) && defined (HAVE_SELECT) 836#if defined (HAVE_TIMEVAL) && defined (HAVE_SELECT)
834 if (visible_bell) 837 if (visible_bell)
835 XTflash (selected_frame); 838 XTflash (selected_frame);