aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorGerd Möllmann2025-01-25 14:28:03 +0100
committerGerd Möllmann2025-01-25 14:46:05 +0100
commit945ed044cd8ab67ccbbc185c19f500f723cd9045 (patch)
tree9374742edc099b6e9cfa52d920e519317b21022a /src/term.c
parentd4220a17c4ecf4639a276352149218077c1d6315 (diff)
downloademacs-945ed044cd8ab67ccbbc185c19f500f723cd9045.tar.gz
emacs-945ed044cd8ab67ccbbc185c19f500f723cd9045.zip
Reapply "Simplify absolute (x, y) computation on ttys"
This reverts commit 13fdcd730ff63bf79caace9a6e46aff5f944b1b7.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/term.c b/src/term.c
index 4ae9c373888..00bc94e6e31 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2996,10 +2996,9 @@ mouse_get_xy (int *x, int *y)
2996 struct frame *sf = SELECTED_FRAME (); 2996 struct frame *sf = SELECTED_FRAME ();
2997 if (f == sf || is_frame_ancestor (sf, f)) 2997 if (f == sf || is_frame_ancestor (sf, f))
2998 { 2998 {
2999 int fx, fy; 2999 int mx = XFIXNUM (XCAR (XCDR (mouse)));
3000 frame_pos_abs (f, &fx, &fy); 3000 int my = XFIXNUM (XCDR (XCDR (mouse)));
3001 *x = fx + XFIXNUM (XCAR (XCDR (mouse))); 3001 root_xy (f, mx, my, x, y);
3002 *y = fy + XFIXNUM (XCDR (XCDR (mouse)));
3003 } 3002 }
3004} 3003}
3005 3004