diff options
author | Po Lu <luangruo@yahoo.com> | 2022-08-25 12:24:34 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-08-25 12:24:34 +0800 |
commit | 34686263b7459f78fd1e6d68dc1aa9c8644876b3 (patch) | |
tree | bda09d8cb411f467ee293ef06cdce48f5aa46180 /src/xterm.h | |
parent | bc8141594d67fcb95dc58e031d811aee0dbf96e0 (diff) | |
download | emacs-34686263b7459f78fd1e6d68dc1aa9c8644876b3.tar.gz emacs-34686263b7459f78fd1e6d68dc1aa9c8644876b3.tar.bz2 emacs-34686263b7459f78fd1e6d68dc1aa9c8644876b3.zip |
Fix various problems with mouse highlight on XI2 builds
* src/dispextern.h (reset_mouse_highlight): Fix coding style.
* src/xterm.c (xi_position_changed): New functions.
(xi_report_motion_window_clear, handle_one_xevent): Don't report
motion events if the pixel position did not actually change.
* src/xterm.h (struct xi_device_t): New fields
`last_motion_window', `last_motion_x' and `last_motion_y'.
Diffstat (limited to 'src/xterm.h')
-rw-r--r-- | src/xterm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h index 8500ec27710..9d9675428ff 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -286,6 +286,12 @@ struct xi_device_t /* The frame that is currently this device's implicit keyboard focus, or NULL. */ struct frame *focus_implicit_frame; + + /* The window on which the last motion event happened. */ + Window last_motion_window; + + /* The rounded integer coordinates of the last motion event. */ + int last_motion_x, last_motion_y; }; #endif |