emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 7a699e79f6: Free XI2 devices in x_delete_display instead


From: Po Lu
Subject: master 7a699e79f6: Free XI2 devices in x_delete_display instead
Date: Sat, 19 Feb 2022 20:14:54 -0500 (EST)

branch: master
commit 7a699e79f6e2616dbbc3acc2024f97c90caa485c
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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.
---
 src/xterm.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index e2ad0b48f5..64bee11022 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -16584,6 +16584,11 @@ x_delete_display (struct x_display_info *dpyinfo)
   xfree (dpyinfo->x_dnd_atoms);
   xfree (dpyinfo->color_cells);
   xfree (dpyinfo);
+
+#ifdef HAVE_XINPUT2
+  if (dpyinfo->supports_xi2)
+    x_free_xi_devices (dpyinfo);
+#endif
 }
 
 #ifdef USE_X_TOOLKIT
@@ -16729,10 +16734,6 @@ x_delete_terminal (struct terminal *terminal)
       if (dpyinfo->xkb_desc)
        XkbFreeKeyboard (dpyinfo->xkb_desc, XkbAllComponentsMask, True);
 #endif
-#ifdef HAVE_XINPUT2
-      if (dpyinfo->supports_xi2)
-       x_free_xi_devices (dpyinfo);
-#endif
 #ifdef USE_GTK
       xg_display_close (dpyinfo->display);
 #else



reply via email to

[Prev in Thread] Current Thread [Next in Thread]