aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2008-12-13 22:09:09 +0000
committerChong Yidong2008-12-13 22:09:09 +0000
commitb3b6105f0dc52e1cec304876202e20fcc5149d04 (patch)
tree0f3d505a71a1d806e54b6abfd360757f602d50bb /src
parentb131d53521dd707b23febee200e018624be14a4d (diff)
downloademacs-b3b6105f0dc52e1cec304876202e20fcc5149d04.tar.gz
emacs-b3b6105f0dc52e1cec304876202e20fcc5149d04.zip
(x_delete_display): Move xim_close_dpy call to x_delete_terminal.
(x_delete_terminal): Call xim_close_dpy.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c
index ffc03bc10e9..c47bd5026f7 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10524,10 +10524,6 @@ x_delete_display (dpyinfo)
10524 XrmDestroyDatabase (dpyinfo->xrdb); 10524 XrmDestroyDatabase (dpyinfo->xrdb);
10525#endif 10525#endif
10526#endif 10526#endif
10527#ifdef HAVE_X_I18N
10528 if (dpyinfo->xim)
10529 xim_close_dpy (dpyinfo);
10530#endif
10531 10527
10532 xfree (dpyinfo->x_id_name); 10528 xfree (dpyinfo->x_id_name);
10533 xfree (dpyinfo->x_dnd_atoms); 10529 xfree (dpyinfo->x_dnd_atoms);
@@ -10635,6 +10631,13 @@ x_delete_terminal (struct terminal *terminal)
10635 return; 10631 return;
10636 10632
10637 BLOCK_INPUT; 10633 BLOCK_INPUT;
10634#ifdef HAVE_X_I18N
10635 /* We must close our connection to the XIM server before closing the
10636 X display. */
10637 if (dpyinfo->xim)
10638 xim_close_dpy (dpyinfo);
10639#endif
10640
10638 /* If called from x_connection_closed, the display may already be closed 10641 /* If called from x_connection_closed, the display may already be closed
10639 and dpyinfo->display was set to 0 to indicate that. */ 10642 and dpyinfo->display was set to 0 to indicate that. */
10640 if (dpyinfo->display) 10643 if (dpyinfo->display)