aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-01-11 19:06:41 +0800
committerPo Lu2022-01-11 19:06:41 +0800
commit46c1dd4cd54c5494a6e5c6e65abb2e105cf2e553 (patch)
tree82e7ccda8698b13e1969d133784a755209ab9871 /src
parente35194866706e5632db3070f4e32950ecc0a58f4 (diff)
downloademacs-46c1dd4cd54c5494a6e5c6e65abb2e105cf2e553.tar.gz
emacs-46c1dd4cd54c5494a6e5c6e65abb2e105cf2e553.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c2
1 files changed, 0 insertions, 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)
378 { 378 {
379 for (int i = 0; i < dpyinfo->num_devices; ++i) 379 for (int i = 0; i < dpyinfo->num_devices; ++i)
380 { 380 {
381 XIUngrabDevice (dpyinfo->display, dpyinfo->devices[i].device_id,
382 CurrentTime);
383 xfree (dpyinfo->devices[i].valuators); 381 xfree (dpyinfo->devices[i].valuators);
384 382
385 tem = dpyinfo->devices[i].touchpoints; 383 tem = dpyinfo->devices[i].touchpoints;