diff options
| author | Richard M. Stallman | 1993-05-29 05:59:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-29 05:59:09 +0000 |
| commit | 5a6ef893cc360f7d7a2f0e1d77787980d27f7ff3 (patch) | |
| tree | 8cf9dec0cfe9d9dffe65713add247ff6d7c00ce4 | |
| parent | dfda7a7fc5c329678b05f90d92de46de401816ea (diff) | |
| download | emacs-5a6ef893cc360f7d7a2f0e1d77787980d27f7ff3.tar.gz emacs-5a6ef893cc360f7d7a2f0e1d77787980d27f7ff3.zip | |
(XTring_bell): Do nothing if x_current_connection is 0.
| -rw-r--r-- | src/xterm.c | 3 |
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 | ||
| 831 | XTring_bell () | 831 | XTring_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); |