From 46c1dd4cd54c5494a6e5c6e65abb2e105cf2e553 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 11 Jan 2022 19:06:41 +0800 Subject: [PATCH] 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. --- src/xterm.c | 2 -- 1 file changed, 2 deletions(-) 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; -- 2.39.5