comparison src/w32inevt.c @ 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 85bdcc694c7a
children ee40177f6c68
comparison
equal deleted inserted replaced
12543:13aa3e939a4d 12544:8f17bdb409cf
33 #include "blockinput.h" 33 #include "blockinput.h"
34 #include "termhooks.h" 34 #include "termhooks.h"
35 35
36 /* stdin, from ntterm */ 36 /* stdin, from ntterm */
37 extern HANDLE keyboard_handle; 37 extern HANDLE keyboard_handle;
38
39 /* Indicate mouse motion, from keyboard.c */
40 extern int mouse_moved;
41 38
42 /* Info for last mouse motion */ 39 /* Info for last mouse motion */
43 static COORD movement_pos; 40 static COORD movement_pos;
44 static DWORD movement_time; 41 static DWORD movement_time;
45 42
374 insist = insist; 371 insist = insist;
375 372
376 *f = get_frame (); 373 *f = get_frame ();
377 *bar_window = Qnil; 374 *bar_window = Qnil;
378 *part = 0; 375 *part = 0;
379 mouse_moved = 0; 376 selected_frame->mouse_moved = 0;
380 377
381 *x = movement_pos.X; 378 *x = movement_pos.X;
382 *y = movement_pos.Y; 379 *y = movement_pos.Y;
383 *time = movement_time; 380 *time = movement_time;
384 381
390 mouse_moved_to (int x, int y) 387 mouse_moved_to (int x, int y)
391 { 388 {
392 /* If we're in the same place, ignore it */ 389 /* If we're in the same place, ignore it */
393 if (x != movement_pos.X || y != movement_pos.Y) 390 if (x != movement_pos.X || y != movement_pos.Y)
394 { 391 {
395 mouse_moved = 1; 392 selected_frame->mouse_moved = 1;
396 movement_pos.X = x; 393 movement_pos.X = x;
397 movement_pos.Y = y; 394 movement_pos.Y = y;
398 movement_time = GetTickCount (); 395 movement_time = GetTickCount ();
399 } 396 }
400 } 397 }