Revert "Fix tty-frame-at for nested tty child frames"

This reverts commit 9693f2a95a.
This commit is contained in:
Gerd Möllmann 2025-01-25 09:39:51 +01:00
parent e2cc52dbcd
commit 9ad28959d6

View file

@ -2603,11 +2603,9 @@ tty_frame_at (int x, int y)
{
Lisp_Object frame = Fcar (frames);
struct frame *f = XFRAME (frame);
int fx, fy;
root_xy (f, 0, 0, &fx, &fy);
if (fx <= x && x < fx + f->pixel_width
&& fy <= y && y < fy + f->pixel_height)
if (f->left_pos <= x && x < f->left_pos + f->pixel_width &&
f->top_pos <= y && y < f->top_pos + f->pixel_height)
return frame;
}