diff options
| author | Po Lu | 2021-12-21 09:43:23 +0800 |
|---|---|---|
| committer | Po Lu | 2021-12-21 09:43:23 +0800 |
| commit | 4234995d428f53ffa9dbf2d4817e2cdfe613a5f4 (patch) | |
| tree | 21aa8dfeb8f5043b5825b307fadaea84d2a91c42 /src | |
| parent | 2bcd299431495e2107df16febf9b207c75fb29fd (diff) | |
| download | emacs-4234995d428f53ffa9dbf2d4817e2cdfe613a5f4.tar.gz emacs-4234995d428f53ffa9dbf2d4817e2cdfe613a5f4.zip | |
* src/xterm.c (handle_one_xevent): Set user time on touch events.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 47539fdef5d..0cc093dc752 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -10879,6 +10879,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 10879 | { | 10879 | { |
| 10880 | struct xi_device_t *device; | 10880 | struct xi_device_t *device; |
| 10881 | device = xi_device_from_id (dpyinfo, xev->deviceid); | 10881 | device = xi_device_from_id (dpyinfo, xev->deviceid); |
| 10882 | x_display_set_last_user_time (dpyinfo, xev->time); | ||
| 10882 | 10883 | ||
| 10883 | if (!device) | 10884 | if (!device) |
| 10884 | goto XI_OTHER; | 10885 | goto XI_OTHER; |
| @@ -10939,6 +10940,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 10939 | Lisp_Object arg = Qnil; | 10940 | Lisp_Object arg = Qnil; |
| 10940 | 10941 | ||
| 10941 | device = xi_device_from_id (dpyinfo, xev->deviceid); | 10942 | device = xi_device_from_id (dpyinfo, xev->deviceid); |
| 10943 | x_display_set_last_user_time (dpyinfo, xev->time); | ||
| 10942 | 10944 | ||
| 10943 | if (!device) | 10945 | if (!device) |
| 10944 | goto XI_OTHER; | 10946 | goto XI_OTHER; |
| @@ -10979,6 +10981,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 10979 | bool unlinked_p; | 10981 | bool unlinked_p; |
| 10980 | 10982 | ||
| 10981 | device = xi_device_from_id (dpyinfo, xev->deviceid); | 10983 | device = xi_device_from_id (dpyinfo, xev->deviceid); |
| 10984 | x_display_set_last_user_time (dpyinfo, xev->time); | ||
| 10982 | 10985 | ||
| 10983 | if (!device) | 10986 | if (!device) |
| 10984 | goto XI_OTHER; | 10987 | goto XI_OTHER; |