Access mouse_moved in selected_frame.
/* 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;
*f = get_frame ();
*bar_window = Qnil;
*part = 0;
- mouse_moved = 0;
+ selected_frame->mouse_moved = 0;
*x = movement_pos.X;
*y = movement_pos.Y;
/* 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 ();