Mercurial > hg > xemacs-beta
changeset 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 | 792485be7974 |
children | 761385dfa575 |
files | src/ChangeLog src/sound.c |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Tue Nov 28 22:51:04 2006 +0000 +++ b/src/ChangeLog Wed Nov 29 19:10:03 2006 +0000 @@ -1,3 +1,10 @@ +2006-11-29 Aidan Kehoe <kehoea@parhasard.net> + + * sound.c (init_native_sound): + Only X11 and GTK devices can possibly not be on the console of the + associated machine. Fixes a crash when init_native_sound is called + on a msprinter device. + 2006-11-28 Aidan Kehoe <kehoea@parhasard.net> * device-x.c:
--- 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