]> git.eshelyaron.com Git - emacs.git/commit
Support TTY child frames with GPM mouse
authorJared Finder <jared@finder.org>
Tue, 7 Jan 2025 04:52:11 +0000 (20:52 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 11 Jan 2025 11:19:42 +0000 (12:19 +0100)
commit470b31ed7f39c13b7f5ede7231484bca2429d4d3
tree612b2a30a112fc0ee355268eae1a3a793c321416
parent40457f22e61b6bc4518dc7975ad3df47c4d3e282
Support TTY child frames with GPM mouse

* lisp/frame.el (x-list-fonts): Delete `frame-at', to move to
C implementation.
* lisp/xt-mouse.el (xterm-mouse-event): Call new `tty-frame-at'.
* src/term.c (tty_frame_at, Ftty_frame_at): New C function,
replacing `frame-at' only for TTYs.
(term_mouse_position): Use last_mouse_frame when it is set.
(handle_one_term_event): Call tty_frame_at to get frame under
mouse, store it in last_mouse_frame.  Alter event coordinates
based on mouse frame.
(syms_of_term): Add tty-frame-at, last_mouse_frame.
* src/termhooks.h: Make Gpm_Event parameter const.

(cherry picked from commit d018a26f9cfb29b166199e88ec6ee84d06733851)
lisp/frame.el
lisp/xt-mouse.el
src/term.c
src/termhooks.h