emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TTY child frames and mouse_position_hook


From: Gerd Möllmann
Subject: Re: TTY child frames and mouse_position_hook
Date: Fri, 20 Dec 2024 05:45:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Po Lu <luangruo@yahoo.com> writes:

> Where does the tty child frame implementation account for the absolute
> positions of child frames when processing mouse input, as from
> xterm-mouse-mode?  Needless to say, mouse input is not properly
> translated on MS-DOS, and I would prefer to reuse code that already
> exists, provided that I can locate it.
>
> Thanks in advance.

I think this is best seen in the following commits to xt-mouse.el.

e2323775246 | * Fix mouse-position for xterm-mouse-mode
414de92a562 | * Initial child frames based on master

In short, it's

 - Determine frame under (X, y) from by the terminal
 - Give Emacs (frame, x', y') where x' and y' are relative to the frame

 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]