]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't abort upon untracked TouchUpdate events
authorPo Lu <luangruo@yahoo.com>
Sat, 18 Dec 2021 00:58:51 +0000 (08:58 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 18 Dec 2021 00:58:51 +0000 (08:58 +0800)
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

index 761e324e8c59f22955411cbaaf75654df724e1e3..03f509ba8684fb1d1021ea2908fea4d49c8225e0 100644 (file)
@@ -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;