]> git.eshelyaron.com Git - emacs.git/commit
Fix mouse position handling for nested tty child frames
authorGerd Möllmann <gerd@gnu.org>
Sat, 25 Jan 2025 06:33:45 +0000 (07:33 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 25 Jan 2025 17:46:26 +0000 (18:46 +0100)
commit06b0f085a4501294f39d75f46b58a0d2dd84d785
treee77cc5b0453d0beba5acfa6406319c1da34271aa
parent12a19192d1b6e881eda573e48a13b791f8089e93
Fix mouse position handling for nested tty child frames

* src/dispnew.c (child_xy): New function.
* src/dispextern.h: Declare it.
* src/term.c (tty_frame_at): Return child-relative (x, y) in output
parameters.
(Ftty_frame_at): Return a list (FRAME CHILD-X CHILD-Y).
(handle_one_term_event): Adapt use of tty_frame_at.
* lisp/xt-mouse.el (xterm-mouse-event): Use new tty-frame-at.

(cherry picked from commit f37559a1ee035d184bc4db6e4f597281d3ac6879)
lisp/xt-mouse.el
src/dispextern.h
src/dispnew.c
src/term.c