diff options
| author | Dmitry Antipov | 2013-09-19 11:48:53 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-09-19 11:48:53 +0400 |
| commit | ced135ebdbfb0eea719ce165a454e7ff0b681e88 (patch) | |
| tree | 17311f84267e23afbd4d1131ea2fe1fa14aa6f55 /src/w32term.h | |
| parent | f75447737926fd8c898b9e0b77f581f4993a52f1 (diff) | |
| download | emacs-ced135ebdbfb0eea719ce165a454e7ff0b681e88.tar.gz emacs-ced135ebdbfb0eea719ce165a454e7ff0b681e88.zip | |
* xterm.h (struct x_display_info): New members last_mouse_glyph_frame,
last_mouse_scroll_bar, last_mouse_glyph and last_mouse_movement_time,
going to replace static variables below. Adjust comments.
* xterm.c (last_mouse_glyph, last_mouse_glyph_frame)
(last_mouse_scroll_bar, last_mouse_movement_time): Remove.
(note_mouse_movement, XTmouse_position, x_scroll_bar_note_movement)
(x_scroll_bar_report_motion, handle_one_xevent, syms_of_xterm):
Related users changed.
* w32term.h (struct w32_display_info): New members last_mouse_glyph_frame,
last_mouse_scroll_bar, last_mouse_scroll_bar_pos, last_mouse_glyph and
last_mouse_movement_time, going to replace static variables below.
Adjust comments.
* w32term.c (last_mouse_glyph_frame, last_mouse_scroll_bar)
(last_mouse_scroll_bar_pos, last_mouse_glyph, last_mouse_movement_time):
Remove.
(note_mouse_movement, w32_mouse_position, w32_scroll_bar_handle_click)
(x_scroll_bar_report_motion, syms_of_w32term): Related users changed.
* nsterm.h (struct ns_display_info): New members last_mouse_glyph,
last_mouse_movement_time and last_mouse_scroll_bar, going to replace
static variables below.
* nsterm.m (last_mouse_glyph, last_mouse_movement_time)
(last_mouse_scroll_bar): Remove.
(note_mouse_movement, ns_mouse_position, mouseMoved, mouseEntered)
(mouseExited): Related users changed.
Diffstat (limited to 'src/w32term.h')
| -rw-r--r-- | src/w32term.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/w32term.h b/src/w32term.h index ef7f0842680..21b9b6894a7 100644 --- a/src/w32term.h +++ b/src/w32term.h | |||
| @@ -189,10 +189,27 @@ struct w32_display_info | |||
| 189 | /* The frame where the mouse was last time we reported a mouse motion. */ | 189 | /* The frame where the mouse was last time we reported a mouse motion. */ |
| 190 | struct frame *last_mouse_motion_frame; | 190 | struct frame *last_mouse_motion_frame; |
| 191 | 191 | ||
| 192 | /* The frame where the mouse was last time we reported a mouse position. */ | ||
| 193 | struct frame *last_mouse_glyph_frame; | ||
| 194 | |||
| 192 | /* Position where the mouse was last time we reported a motion. | 195 | /* Position where the mouse was last time we reported a motion. |
| 193 | This is a position on last_mouse_motion_frame. */ | 196 | This is a position on last_mouse_motion_frame. */ |
| 194 | int last_mouse_motion_x; | 197 | int last_mouse_motion_x; |
| 195 | int last_mouse_motion_y; | 198 | int last_mouse_motion_y; |
| 199 | |||
| 200 | /* Where the mouse was last time we reported a mouse position. | ||
| 201 | This is a rectangle on last_mouse_glyph_frame. */ | ||
| 202 | RECT last_mouse_glyph; | ||
| 203 | |||
| 204 | /* The scroll bar in which the last motion event occurred. */ | ||
| 205 | struct scroll_bar *last_mouse_scroll_bar; | ||
| 206 | |||
| 207 | /* Mouse position on the scroll bar above. | ||
| 208 | FIXME: shouldn't it be a member of struct scroll_bar? */ | ||
| 209 | int last_mouse_scroll_bar_pos; | ||
| 210 | |||
| 211 | /* Time of last mouse movement. */ | ||
| 212 | Time last_mouse_movement_time; | ||
| 196 | }; | 213 | }; |
| 197 | 214 | ||
| 198 | /* This is a chain of structures for all the displays currently in use. */ | 215 | /* This is a chain of structures for all the displays currently in use. */ |