Use XGetMotionEvents to ask the last mouse motion time from X server.
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 2 Sep 2013 08:45:32 +0000 (12:45 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 2 Sep 2013 08:45:32 +0000 (12:45 +0400)
commit84e70bbae4e86a7832ead64c3f2f7240967ca4b7
treecfc1b6388ddd34ac3c8ca5d4f03859ac5aea03df
parentf167c27b1973c9f2f7a8755c07f23ea671ba1bf1
Use XGetMotionEvents to ask the last mouse motion time from X server.
* xterm.c (X_MOTION_HISTORY): Default to 1.
(x_last_mouse_movement_time) [X_MOTION_HISTORY]: New function.
(x_last_mouse_movement_time) [!X_MOTION_HISTORY]: Legacy version.
(note_mouse_movement, x_scroll_bar_note_movement) [!X_MOTION_HISTORY]:
Ifdef away legacy code.
(XTmouse_position, x_scroll_bar_report_motion):
Use x_last_mouse_movement_time.
src/ChangeLog
src/xterm.c