aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index bc7dd639c6b..1870aae5a6d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3727,11 +3727,15 @@ x_last_mouse_movement_time (struct frame *f)
3727{ 3727{
3728 Time t; 3728 Time t;
3729 int nevents; 3729 int nevents;
3730 XTimeCoord *xtc = XGetMotionEvents (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 3730 XTimeCoord *xtc;
3731 1, last_user_time, &nevents); 3731
3732 block_input ();
3733 xtc = XGetMotionEvents (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
3734 1, last_user_time, &nevents);
3732 eassert (xtc && nevents > 0); 3735 eassert (xtc && nevents > 0);
3733 t = xtc[nevents - 1].time; 3736 t = xtc[nevents - 1].time;
3734 XFree (xtc); 3737 XFree (xtc);
3738 unblock_input ();
3735 return t; 3739 return t;
3736} 3740}
3737 3741