diff options
author | Po Lu <luangruo@yahoo.com> | 2022-06-22 09:49:16 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-06-22 09:49:16 +0800 |
commit | d5a3fbe7c8b320cae26458ce353a5d933ded7bb9 (patch) | |
tree | 628e8436729ebc40bf88ebb300418900f6a9f938 /src/xterm.h | |
parent | 6f5f2ebfb4fe2652152bc0f69d6a1ffde3ec5c87 (diff) | |
download | emacs-d5a3fbe7c8b320cae26458ce353a5d933ded7bb9.tar.gz |
Fix setting user time for mouse movement events
* src/xterm.c (x_note_mouse_movement, XTmouse_position)
(x_scroll_bar_note_movement, handle_one_xevent): Record whether
or not mouse movement was send_event before using the mouse
movement time.
* src/xterm.h (struct x_display_info): New field
`last_mouse_movement_time_send_event'.
Diffstat (limited to 'src/xterm.h')
-rw-r--r-- | src/xterm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h index 3d243f3eabf..f136b6b97fe 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -515,6 +515,9 @@ struct x_display_info received, and return that in hopes that it's somewhat accurate. */ Time last_mouse_movement_time; + /* Whether or not the last mouse motion was synthetic. */ + bool last_mouse_movement_time_send_event; + /* The gray pixmap. */ Pixmap gray; |