From: Gerd Möllmann Date: Sat, 25 Jan 2025 08:39:51 +0000 (+0100) Subject: Revert "Fix tty-frame-at for nested tty child frames" X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5516bc6ae7472a4275819e771c81b553b870f5e7;p=emacs.git Revert "Fix tty-frame-at for nested tty child frames" This reverts commit 9693f2a95ad14bf0caa34e60d72722d4dd4d85c9. (cherry picked from commit 9ad28959d6895720865c0718bf60f4b7b0b144f3) --- diff --git a/src/term.c b/src/term.c index 7397ee68347..00bc94e6e31 100644 --- a/src/term.c +++ b/src/term.c @@ -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; }