aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1995-07-17 22:23:14 +0000
committerKarl Heuer1995-07-17 22:23:14 +0000
commit0e7078f5c8e0460fdc8076aec89dcd15c41b77f5 (patch)
tree6e96622c1fa3c2bb45013ac1bea76d5358c648f5
parent6462918ce537fd529f4a6f60227e7cdd0c10c7eb (diff)
downloademacs-0e7078f5c8e0460fdc8076aec89dcd15c41b77f5.tar.gz
emacs-0e7078f5c8e0460fdc8076aec89dcd15c41b77f5.zip
(win32_mouse_position, mouse_moved_to):
Access mouse_moved in selected_frame.
-rw-r--r--src/w32inevt.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/w32inevt.c b/src/w32inevt.c
index 53876cb6ee0..25eccb644e3 100644
--- a/src/w32inevt.c
+++ b/src/w32inevt.c
@@ -36,9 +36,6 @@
36/* stdin, from ntterm */ 36/* stdin, from ntterm */
37extern HANDLE keyboard_handle; 37extern HANDLE keyboard_handle;
38 38
39/* Indicate mouse motion, from keyboard.c */
40extern int mouse_moved;
41
42/* Info for last mouse motion */ 39/* Info for last mouse motion */
43static COORD movement_pos; 40static COORD movement_pos;
44static DWORD movement_time; 41static DWORD movement_time;
@@ -376,7 +373,7 @@ win32_mouse_position (FRAME_PTR *f,
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;
@@ -392,7 +389,7 @@ mouse_moved_to (int x, int y)
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 ();