Mercurial > hg > xemacs-beta
diff src/sound.c @ 3710:4bcad369dfd4
[xemacs-hg @ 2006-11-29 19:10:01 by aidan]
Avoid a crash in Cygwin when clicking File -> Print under X11.
author | aidan |
---|---|
date | Wed, 29 Nov 2006 19:10:03 +0000 |
parents | 3151d67d15d2 |
children | af0d2950b72a |
line wrap: on
line diff
--- a/src/sound.c Tue Nov 28 22:51:04 2006 +0000 +++ b/src/sound.c Wed Nov 29 19:10:03 2006 +0000 @@ -590,7 +590,7 @@ static void init_native_sound (struct device *d) { - if (DEVICE_TTY_P (d) || DEVICE_STREAM_P (d) || DEVICE_MSWINDOWS_P(d)) + if (!(DEVICE_X_P(d) || DEVICE_GTK_P(dev))) DEVICE_ON_CONSOLE_P (d) = 1; #ifdef HAVE_X_WINDOWS else