[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TTY child frames and mouse_position_hook
From: |
Po Lu |
Subject: |
Re: TTY child frames and mouse_position_hook |
Date: |
Fri, 20 Dec 2024 13:02:49 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Gerd Möllmann <gerd.moellmann@gmail.com> writes:
> 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
>
>
Oh, I see. Thank you!