diff options
| author | Po Lu | 2021-12-18 08:58:51 +0800 |
|---|---|---|
| committer | Po Lu | 2021-12-18 08:58:51 +0800 |
| commit | 26d1f04d76333571b4dbe6d2cab75b44023574ee (patch) | |
| tree | 4460a132de80fee841becf83df4311e617d3ff6f /src | |
| parent | 041fff3d3dda2914f40b590a5e6a9f791a5a7fd0 (diff) | |
| download | emacs-26d1f04d76333571b4dbe6d2cab75b44023574ee.tar.gz emacs-26d1f04d76333571b4dbe6d2cab75b44023574ee.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
| 10935 | touchpoint = xi_find_touch_point (device, xev->detail); | 10935 | touchpoint = xi_find_touch_point (device, xev->detail); |
| 10936 | 10936 | ||
| 10937 | if (!touchpoint) | 10937 | if (!touchpoint) |
| 10938 | emacs_abort (); | 10938 | goto XI_OTHER; |
| 10939 | 10939 | ||
| 10940 | touchpoint->x = xev->event_x; | 10940 | touchpoint->x = xev->event_x; |
| 10941 | touchpoint->y = xev->event_y; | 10941 | touchpoint->y = xev->event_y; |