diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 11 |
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) |