mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-25 05:52:42 -08:00
Reapply "Simplify absolute (x, y) computation on ttys"
This reverts commit 13fdcd730f.
This commit is contained in:
parent
d4220a17c4
commit
945ed044cd
3 changed files with 13 additions and 15 deletions
|
|
@ -2996,10 +2996,9 @@ mouse_get_xy (int *x, int *y)
|
|||
struct frame *sf = SELECTED_FRAME ();
|
||||
if (f == sf || is_frame_ancestor (sf, f))
|
||||
{
|
||||
int fx, fy;
|
||||
frame_pos_abs (f, &fx, &fy);
|
||||
*x = fx + XFIXNUM (XCAR (XCDR (mouse)));
|
||||
*y = fy + XFIXNUM (XCDR (XCDR (mouse)));
|
||||
int mx = XFIXNUM (XCAR (XCDR (mouse)));
|
||||
int my = XFIXNUM (XCDR (XCDR (mouse)));
|
||||
root_xy (f, mx, my, x, y);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue