• Dmitry Antipov's avatar
    Use XGetMotionEvents to ask the last mouse motion time from X server. · 84e70bba
    Dmitry Antipov authored
    * 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.
    84e70bba
xterm.c 318 KB