aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry Antipov2013-09-02 14:37:06 +0400
committerDmitry Antipov2013-09-02 14:37:06 +0400
commitdef74bdc4849c1bae460ffadd47072a7171215b3 (patch)
tree41d67a0b2ce741de05d092f88f3770984682237c /src
parent2f3426954a7e8e6b5c5de123a71f58f606ccc6da (diff)
downloademacs-def74bdc4849c1bae460ffadd47072a7171215b3.tar.gz
emacs-def74bdc4849c1bae460ffadd47072a7171215b3.zip
* xterm.c (x_last_mouse_movement_time) [X_MOTION_HISTORY]: Fix last change.
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