From: Po Lu Date: Tue, 11 Jan 2022 11:06:41 +0000 (+0800) Subject: Stop ungrabbing when freeing XI devices X-Git-Tag: emacs-29.0.90~3134 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=46c1dd4cd54c5494a6e5c6e65abb2e105cf2e553;p=emacs.git Stop ungrabbing when freeing XI devices This breaks when x_free_xi_devices is called from a HierarchyChange event where a master device has been removed or a slave device has been detached, and it should no longer be required since we now rely on passive grabs. * src/xterm.c (x_init_master_valuators): Stop calling XIUngrabDevice on all devices. --- diff --git a/src/xterm.c b/src/xterm.c index cca57952ba0..52715892703 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -378,8 +378,6 @@ x_free_xi_devices (struct x_display_info *dpyinfo) { for (int i = 0; i < dpyinfo->num_devices; ++i) { - XIUngrabDevice (dpyinfo->display, dpyinfo->devices[i].device_id, - CurrentTime); xfree (dpyinfo->devices[i].valuators); tem = dpyinfo->devices[i].touchpoints;