aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.h
diff options
context:
space:
mode:
authorDmitry Antipov2013-09-18 13:23:10 +0400
committerDmitry Antipov2013-09-18 13:23:10 +0400
commit18da0d8ad4e5036185acbad3238cbfe2aaf3ca66 (patch)
tree7dc7f25186e10dd1c767d1dbf26268b8c70e1a51 /src/xterm.h
parent7a0c745ad134aff0bb8f4258ea607137a819b58d (diff)
downloademacs-18da0d8ad4e5036185acbad3238cbfe2aaf3ca66.tar.gz
emacs-18da0d8ad4e5036185acbad3238cbfe2aaf3ca66.zip
* frame.c (x_redo_mouse_highlight): New function
to factor out common code used in W32 and X ports. * dispextern.h (x_redo_mouse_highlight): Add prototype. * xterm.h (struct x_display_info): * w32term.h (struct w32_display_info): * nsterm.h (struct ns_display_info): New members last_mouse_motion_frame, last_mouse_motion_x and last_mouse_motion_y, going to replace static variables below. * xterm.c (last_mouse_motion_event, last_mouse_motion_frame) (redo_mouse_highlight): Remove. (note_mouse_movement, syms_of_xterm): Adjust user. (handle_one_xevent): Likewise. Use x_redo_mouse_highlight. * w32term.c (last_mouse_motion_event, last_mouse_motion_frame) (redo_mouse_highlight): Remove. (note_mouse_movement, syms_of_w32term): Adjust user. (w32_read_socket): Likewise. Use x_redo_mouse_highlight. * nsterm.m (last_mouse_motion_position, last_mouse_motion_frame): Remove. (note_mouse_movement, mouseMoved, syms_of_nsterm): * nsfns.m (compute_tip_xy): Adjust user.
Diffstat (limited to 'src/xterm.h')
-rw-r--r--src/xterm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h
index f1bfc883a64..9f01a840e53 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -308,9 +308,17 @@ struct x_display_info
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 mouse 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 motion. */
312 struct frame *last_mouse_motion_frame;
313
311 /* Time of last user interaction as returned in X events on this display. */ 314 /* Time of last user interaction as returned in X events on this display. */
312 Time last_user_time; 315 Time last_user_time;
313 316
317 /* Position where the mouse was last time we reported a motion.
318 This is a position on last_mouse_motion_frame. */
319 int last_mouse_motion_x;
320 int last_mouse_motion_y;
321
314 /* The gray pixmap. */ 322 /* The gray pixmap. */
315 Pixmap gray; 323 Pixmap gray;
316 324