Revert "Fix tty-frame-at for nested tty child frames"
This reverts commit 9693f2a95a
.
This commit is contained in:
parent
e2cc52dbcd
commit
9ad28959d6
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue