Mercurial > emacs
comparison src/w32inevt.c @ 27399:22e4449438ff
(get_frame, w32_console_mouse_position, mouse_moved_to):
Use SELECTED_FRAME macro.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sun, 23 Jan 2000 03:21:01 +0000 |
parents | 42f29912dc46 |
children | 3e276f92852a |
comparison
equal
deleted
inserted
replaced
27398:d6331257c601 | 27399:22e4449438ff |
---|---|
108 | 108 |
109 Right now, there's only one frame so return it. */ | 109 Right now, there's only one frame so return it. */ |
110 static FRAME_PTR | 110 static FRAME_PTR |
111 get_frame (void) | 111 get_frame (void) |
112 { | 112 { |
113 return selected_frame; | 113 return SELECTED_FRAME (); |
114 } | 114 } |
115 | 115 |
116 /* Translate console modifiers to emacs modifiers. | 116 /* Translate console modifiers to emacs modifiers. |
117 German keyboard support (Kai Morgan Zeise 2/18/95). */ | 117 German keyboard support (Kai Morgan Zeise 2/18/95). */ |
118 int | 118 int |
517 #endif | 517 #endif |
518 | 518 |
519 *f = get_frame (); | 519 *f = get_frame (); |
520 *bar_window = Qnil; | 520 *bar_window = Qnil; |
521 *part = 0; | 521 *part = 0; |
522 selected_frame->mouse_moved = 0; | 522 SELECTED_FRAME ()->mouse_moved = 0; |
523 | 523 |
524 *x = movement_pos.X; | 524 *x = movement_pos.X; |
525 *y = movement_pos.Y; | 525 *y = movement_pos.Y; |
526 *time = movement_time; | 526 *time = movement_time; |
527 | 527 |
533 mouse_moved_to (int x, int y) | 533 mouse_moved_to (int x, int y) |
534 { | 534 { |
535 /* If we're in the same place, ignore it */ | 535 /* If we're in the same place, ignore it */ |
536 if (x != movement_pos.X || y != movement_pos.Y) | 536 if (x != movement_pos.X || y != movement_pos.Y) |
537 { | 537 { |
538 selected_frame->mouse_moved = 1; | 538 SELECTED_FRAME ()->mouse_moved = 1; |
539 movement_pos.X = x; | 539 movement_pos.X = x; |
540 movement_pos.Y = y; | 540 movement_pos.Y = y; |
541 movement_time = GetTickCount (); | 541 movement_time = GetTickCount (); |
542 } | 542 } |
543 } | 543 } |