From 26d1f04d76333571b4dbe6d2cab75b44023574ee Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 18 Dec 2021 08:58:51 +0800 Subject: [PATCH] Don't abort upon untracked TouchUpdate events Emacs might get an untracked TouchUpdate event in the unlikely event of a device hierarchy change during a touch sequence, in which case all devices and touchpoints will be reset. * src/xterm.c (handle_one_xevent): Don't abort when receiving a TouchUpdate that isn't part of a touch sequence. --- src/xterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index 761e324e8c5..03f509ba868 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10935,7 +10935,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, touchpoint = xi_find_touch_point (device, xev->detail); if (!touchpoint) - emacs_abort (); + goto XI_OTHER; touchpoint->x = xev->event_x; touchpoint->y = xev->event_y; -- 2.39.5