changeset 44045:b90b8e8e3626

(w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to extract mouse co-ordinates.
author Jason Rumney <jasonr@gnu.org>
date Wed, 20 Mar 2002 20:58:03 +0000
parents 5edbf7ab5d6b
children 994f2deaa5bc
files src/w32term.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32term.c	Wed Mar 20 20:41:49 2002 +0000
+++ b/src/w32term.c	Wed Mar 20 20:58:03 2002 +0000
@@ -8804,7 +8804,10 @@
                     && 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,