Reapply "Fix tty-frame-at for nested tty child frames"
This reverts commit 9ad28959d6
.
This commit is contained in:
parent
26b144f241
commit
e839b83c82
1 changed files with 4 additions and 2 deletions
|
@ -2603,9 +2603,11 @@ 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 (f->left_pos <= x && x < f->left_pos + f->pixel_width &&
|
||||
f->top_pos <= y && y < f->top_pos + f->pixel_height)
|
||||
if (fx <= x && x < fx + f->pixel_width
|
||||
&& fy <= y && y < fy + f->pixel_height)
|
||||
return frame;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue