diff options
| author | Po Lu | 2022-02-25 08:40:51 +0800 |
|---|---|---|
| committer | Po Lu | 2022-02-25 08:40:51 +0800 |
| commit | d29cc1e8a06507dc89c5350c59d0eee263c6df0c (patch) | |
| tree | a3ea089acc198f24616b89362415131705fd88bd /src | |
| parent | 8d2fbd4a146bcd01fd905fb500230c7c662f2a01 (diff) | |
| download | emacs-d29cc1e8a06507dc89c5350c59d0eee263c6df0c.tar.gz emacs-d29cc1e8a06507dc89c5350c59d0eee263c6df0c.zip | |
Set user time when receiving any wheel events
* src/xterm.c (handle_one_xevent): Set user time if the mouse
wheel moved.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 54b00455a1c..18d68e52f12 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -11513,6 +11513,8 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 11513 | #endif | 11513 | #endif |
| 11514 | if (found_valuator) | 11514 | if (found_valuator) |
| 11515 | { | 11515 | { |
| 11516 | x_display_set_last_user_time (dpyinfo, xev->time); | ||
| 11517 | |||
| 11516 | if (fabs (total_x) > 0 || fabs (total_y) > 0) | 11518 | if (fabs (total_x) > 0 || fabs (total_y) > 0) |
| 11517 | { | 11519 | { |
| 11518 | inev.ie.kind = (fabs (total_y) >= fabs (total_x) | 11520 | inev.ie.kind = (fabs (total_y) >= fabs (total_x) |