On 2024-12-17 22:25, Gerd Möllmann wrote: > WRT GPM: Sounds to me like this is because GPM hasn't been changes to > act analogous to xt-mouse. I think there only two commits to > xt-mouse.el > in the branch. It's not much, if you look at the diffs, basically only > > - determine the frame F under (x, y) as reported by the terminal > > - Give Emacs (F, x', y'), where x' and y' are the coordinates > relative to F > > That was all I needed, in principle, at least for xterm-mouse, to make > things work. Don't know if that also fits for GPm. It was that easy to do. Attached is a patch that adds support for TTY child frames to a GPM mouse. -- MJF