changeset 12544:8f17bdb409cf

(win32_mouse_position, mouse_moved_to): Access mouse_moved in selected_frame.
author Karl Heuer <kwzh@gnu.org>
date Mon, 17 Jul 1995 22:23:14 +0000
parents 13aa3e939a4d
children ccc20d466150
files src/w32inevt.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32inevt.c	Mon Jul 17 22:22:36 1995 +0000
+++ b/src/w32inevt.c	Mon Jul 17 22:23:14 1995 +0000
@@ -36,9 +36,6 @@
 /* stdin, from ntterm */
 extern HANDLE keyboard_handle;
 
-/* Indicate mouse motion, from keyboard.c */
-extern int mouse_moved;
-
 /* Info for last mouse motion */
 static COORD movement_pos;
 static DWORD movement_time;
@@ -376,7 +373,7 @@
   *f = get_frame ();
   *bar_window = Qnil;
   *part = 0;
-  mouse_moved = 0;
+  selected_frame->mouse_moved = 0;
   
   *x = movement_pos.X;
   *y = movement_pos.Y;
@@ -392,7 +389,7 @@
   /* If we're in the same place, ignore it */
   if (x != movement_pos.X || y != movement_pos.Y)
     {
-      mouse_moved = 1;
+      selected_frame->mouse_moved = 1;
       movement_pos.X = x;
       movement_pos.Y = y;
       movement_time = GetTickCount ();