aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-04-05 16:03:20 +0000
committerRichard M. Stallman1996-04-05 16:03:20 +0000
commit408be6610bcbce87bc541a069b1c8c64b602080d (patch)
tree32bbc071b5507c5398021c6b3124bff964ba9d80
parentf867d8d3aedfbd8ee23c79a06b72a4e4ecbd9a01 (diff)
downloademacs-408be6610bcbce87bc541a069b1c8c64b602080d.tar.gz
emacs-408be6610bcbce87bc541a069b1c8c64b602080d.zip
(x_destroy_window): Do call XCloseIM if X11R6.
-rw-r--r--src/xterm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c
index c6aede5150f..99249f7ca4b 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5558,9 +5558,10 @@ x_destroy_window (f)
5558 if (FRAME_XIM (f)) 5558 if (FRAME_XIM (f))
5559 { 5559 {
5560 XDestroyIC (FRAME_XIC (f)); 5560 XDestroyIC (FRAME_XIC (f));
5561#ifndef SOLARIS2 /* This code causes crashes on Solaris 2.3 and 2.5, 5561#if ! defined (SOLARIS2) || defined (HAVE_X11R6)
5562 due to an apparent bug in XCloseIM. 5562 /* This line causes crashes on Solaris with Openwin,
5563 The bug may be only in Openwin and not in X11R6. */ 5563 due to an apparent bug in XCloseIM.
5564 X11R6 seems not to have the bug. */
5564 XCloseIM (FRAME_XIM (f)); 5565 XCloseIM (FRAME_XIM (f));
5565#endif 5566#endif
5566 } 5567 }