From e81916d1ba3fcf0a09fb7634f1d0c982714a39d6 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Wed, 20 Mar 2002 20:58:03 +0000 Subject: [PATCH] (w32_read_socket) : Use XFASTINT to extract mouse co-ordinates. --- src/w32term.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/w32term.c b/src/w32term.c index 3d52d33205..8a2e40616a 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -8804,7 +8804,10 @@ w32_read_socket (sd, bufp, numchars, expected) && XFASTINT (XWINDOW (f->tool_bar_window)->height)) { Lisp_Object window; - int p; + int p, x, y; + + x = XFASTINT (emacs_event.x); + y = XFASTINT (emacs_event.y); /* Set x and y. */ window = window_from_coordinates (f, -- 2.20.1