diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32inevt.c | 7 |
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 */ |
| 37 | extern HANDLE keyboard_handle; | 37 | extern HANDLE keyboard_handle; |
| 38 | 38 | ||
| 39 | /* Indicate mouse motion, from keyboard.c */ | ||
| 40 | extern int mouse_moved; | ||
| 41 | |||
| 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; |
| @@ -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 (); |