diff options
| author | Po Lu | 2022-02-20 09:14:00 +0800 |
|---|---|---|
| committer | Po Lu | 2022-02-20 09:14:00 +0800 |
| commit | 7a699e79f6e2616dbbc3acc2024f97c90caa485c (patch) | |
| tree | 79d3f04ed716e84c58ffff800ba6d49d0a5e6240 /src | |
| parent | 5767e06b8e7662bc76c199b3bcb3d5d09c6d9ca2 (diff) | |
| download | emacs-7a699e79f6e2616dbbc3acc2024f97c90caa485c.tar.gz emacs-7a699e79f6e2616dbbc3acc2024f97c90caa485c.zip | |
Free XI2 devices in x_delete_display instead
* src/xterm.c (x_delete_display): Free XI2 device data here
instead, since it doesn't involve contacting the X server any
more.
(x_delete_terminal): Stop freeing XI2 device data.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c index e2ad0b48f58..64bee110227 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -16584,6 +16584,11 @@ x_delete_display (struct x_display_info *dpyinfo) | |||
| 16584 | xfree (dpyinfo->x_dnd_atoms); | 16584 | xfree (dpyinfo->x_dnd_atoms); |
| 16585 | xfree (dpyinfo->color_cells); | 16585 | xfree (dpyinfo->color_cells); |
| 16586 | xfree (dpyinfo); | 16586 | xfree (dpyinfo); |
| 16587 | |||
| 16588 | #ifdef HAVE_XINPUT2 | ||
| 16589 | if (dpyinfo->supports_xi2) | ||
| 16590 | x_free_xi_devices (dpyinfo); | ||
| 16591 | #endif | ||
| 16587 | } | 16592 | } |
| 16588 | 16593 | ||
| 16589 | #ifdef USE_X_TOOLKIT | 16594 | #ifdef USE_X_TOOLKIT |
| @@ -16729,10 +16734,6 @@ x_delete_terminal (struct terminal *terminal) | |||
| 16729 | if (dpyinfo->xkb_desc) | 16734 | if (dpyinfo->xkb_desc) |
| 16730 | XkbFreeKeyboard (dpyinfo->xkb_desc, XkbAllComponentsMask, True); | 16735 | XkbFreeKeyboard (dpyinfo->xkb_desc, XkbAllComponentsMask, True); |
| 16731 | #endif | 16736 | #endif |
| 16732 | #ifdef HAVE_XINPUT2 | ||
| 16733 | if (dpyinfo->supports_xi2) | ||
| 16734 | x_free_xi_devices (dpyinfo); | ||
| 16735 | #endif | ||
| 16736 | #ifdef USE_GTK | 16737 | #ifdef USE_GTK |
| 16737 | xg_display_close (dpyinfo->display); | 16738 | xg_display_close (dpyinfo->display); |
| 16738 | #else | 16739 | #else |