unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* TTY child frames and mouse_position_hook
       [not found] <874j2zqhut.fsf.ref@yahoo.com>
@ 2024-12-20  1:10 ` Po Lu
  2024-12-20  4:45   ` Gerd Möllmann
  0 siblings, 1 reply; 3+ messages in thread
From: Po Lu @ 2024-12-20  1:10 UTC (permalink / raw)
  To: emacs-devel

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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: TTY child frames and mouse_position_hook
  2024-12-20  1:10 ` TTY child frames and mouse_position_hook Po Lu
@ 2024-12-20  4:45   ` Gerd Möllmann
  2024-12-20  5:02     ` Po Lu
  0 siblings, 1 reply; 3+ messages in thread
From: Gerd Möllmann @ 2024-12-20  4:45 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

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

 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: TTY child frames and mouse_position_hook
  2024-12-20  4:45   ` Gerd Möllmann
@ 2024-12-20  5:02     ` Po Lu
  0 siblings, 0 replies; 3+ messages in thread
From: Po Lu @ 2024-12-20  5:02 UTC (permalink / raw)
  To: Gerd Möllmann; +Cc: emacs-devel

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!



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-20  5:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <874j2zqhut.fsf.ref@yahoo.com>
2024-12-20  1:10 ` TTY child frames and mouse_position_hook Po Lu
2024-12-20  4:45   ` Gerd Möllmann
2024-12-20  5:02     ` Po Lu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).