From: Po Lu Date: Sat, 18 Dec 2021 00:58:51 +0000 (+0800) Subject: Don't abort upon untracked TouchUpdate events X-Git-Tag: emacs-29.0.90~3590^2~2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=26d1f04d76333571b4dbe6d2cab75b44023574ee;p=emacs.git 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. --- 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;