[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 9ad28959d68 3/5: Revert "Fix tty-frame-at for nested tty child fr
From: |
Gerd Moellmann |
Subject: |
master 9ad28959d68 3/5: Revert "Fix tty-frame-at for nested tty child frames" |
Date: |
Sat, 25 Jan 2025 03:40:31 -0500 (EST) |
branch: master
commit 9ad28959d6895720865c0718bf60f4b7b0b144f3
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>
Revert "Fix tty-frame-at for nested tty child frames"
This reverts commit 9693f2a95ad14bf0caa34e60d72722d4dd4d85c9.
---
src/term.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
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;
}
- master updated (57b7c07b370 -> 13fdcd730ff), Gerd Moellmann, 2025/01/25
- master e2cc52dbcd1 2/5: Revert "Fix mouse position handling for nested tty child frames", Gerd Moellmann, 2025/01/25
- master 13fdcd730ff 5/5: Revert "Simplify absolute (x, y) computation on ttys", Gerd Moellmann, 2025/01/25
- master d93d8222858 1/5: Revert "Multi-tty: selected frame can be a GUI frame", Gerd Moellmann, 2025/01/25
- master 65036323fc1 4/5: Revert "Fix cursor positioning of nested tty child frames", Gerd Moellmann, 2025/01/25
- master 9ad28959d68 3/5: Revert "Fix tty-frame-at for nested tty child frames",
Gerd Moellmann <=