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/xterm.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/xterm.h')
| -rw-r--r-- | src/xterm.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/xterm.h b/src/xterm.h index 9f01a840e53..36aa8e52b1c 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -305,12 +305,18 @@ struct x_display_info | |||
| 305 | /* The frame waiting to be auto-raised in XTread_socket. */ | 305 | /* The frame waiting to be auto-raised in XTread_socket. */ |
| 306 | struct frame *x_pending_autoraise_frame; | 306 | struct frame *x_pending_autoraise_frame; |
| 307 | 307 | ||
| 308 | /* The frame where the mouse was last time we reported a mouse event. */ | 308 | /* The frame where the mouse was last time we reported a ButtonPress event. */ |
| 309 | struct frame *last_mouse_frame; | 309 | struct frame *last_mouse_frame; |
| 310 | 310 | ||
| 311 | /* The frame where the mouse was last time we reported a mouse position. */ | ||
| 312 | struct frame *last_mouse_glyph_frame; | ||
| 313 | |||
| 311 | /* The frame where the mouse was last time we reported a mouse motion. */ | 314 | /* The frame where the mouse was last time we reported a mouse motion. */ |
| 312 | struct frame *last_mouse_motion_frame; | 315 | struct frame *last_mouse_motion_frame; |
| 313 | 316 | ||
| 317 | /* The scroll bar in which the last X motion event occurred. */ | ||
| 318 | struct scroll_bar *last_mouse_scroll_bar; | ||
| 319 | |||
| 314 | /* Time of last user interaction as returned in X events on this display. */ | 320 | /* Time of last user interaction as returned in X events on this display. */ |
| 315 | Time last_user_time; | 321 | Time last_user_time; |
| 316 | 322 | ||
| @@ -319,6 +325,18 @@ struct x_display_info | |||
| 319 | int last_mouse_motion_x; | 325 | int last_mouse_motion_x; |
| 320 | int last_mouse_motion_y; | 326 | int last_mouse_motion_y; |
| 321 | 327 | ||
| 328 | /* Where the mouse was last time we reported a mouse position. | ||
| 329 | This is a rectangle on last_mouse_glyph_frame. */ | ||
| 330 | XRectangle last_mouse_glyph; | ||
| 331 | |||
| 332 | /* Time of last mouse movement on this display. This is a hack because | ||
| 333 | we would really prefer that XTmouse_position would return the time | ||
| 334 | associated with the position it returns, but there doesn't seem to be | ||
| 335 | any way to wrest the time-stamp from the server along with the position | ||
| 336 | query. So, we just keep track of the time of the last movement we | ||
| 337 | received, and return that in hopes that it's somewhat accurate. */ | ||
| 338 | Time last_mouse_movement_time; | ||
| 339 | |||
| 322 | /* The gray pixmap. */ | 340 | /* The gray pixmap. */ |
| 323 | Pixmap gray; | 341 | Pixmap gray; |
| 324 | 342 | ||