diff options
author | Jared Finder <jared@finder.org> | 2020-10-31 21:25:47 -0800 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2020-11-14 14:31:55 +0200 |
commit | 91d5edd9d10db30418cb32f5734d496d76ef56f3 (patch) | |
tree | 3f21bae82386a7b9f976d483ef3b68cf387a9f0f /src/dispextern.h | |
parent | 31f94e4b1c3dc201646ec436d3e2c477f784ed21 (diff) | |
download | emacs-91d5edd9d10db30418cb32f5734d496d76ef56f3.tar.gz emacs-91d5edd9d10db30418cb32f5734d496d76ef56f3.tar.bz2 emacs-91d5edd9d10db30418cb32f5734d496d76ef56f3.zip |
Face-changing text properties and help-echo now work with xterm-mouse.
* src/dispnew.c (update_mouse_position): New function for mouse
movement logic in 'handle_one_term_event' that can be shared across
different mouse backends.
(display--update-for-mouse-movement): New lisp function, call it.
* lisp/xt-mouse.el (xterm-mouse--handle-mouse-movement): New function
that calls 'display--update-for-mouse-movement'.
(xterm-mouse-translate-1): Call it.
* src/term.c (handle_one_term_event): Inline logic from
'term_mouse_movement' and call 'update_mouse_position'.
(term_mouse_movement): Delete.
Diffstat (limited to 'src/dispextern.h')
-rw-r--r-- | src/dispextern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index 848d3bcd20e..da51772b37a 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -3606,6 +3606,7 @@ extern Lisp_Object marginal_area_string (struct window *, enum window_part, extern void redraw_frame (struct frame *); extern bool update_frame (struct frame *, bool, bool); extern void update_frame_with_menu (struct frame *, int, int); +extern int update_mouse_position (struct frame *, int, int); extern void bitch_at_user (void); extern void adjust_frame_glyphs (struct frame *); void free_glyphs (struct frame *); |