comparison src/xterm.c @ 23643:701b6bdc7a22

(XTread_socket): ButtonPress clears f->mouse_moved.
author Karl Heuer <kwzh@gnu.org>
date Thu, 05 Nov 1998 19:17:42 +0000
parents 5a0cdfd791a2
children 25077ab7295c
comparison
equal deleted inserted replaced
23642:44cf8be6373e 23643:701b6bdc7a22
4564 4564
4565 if (event.type == ButtonPress) 4565 if (event.type == ButtonPress)
4566 { 4566 {
4567 dpyinfo->grabbed |= (1 << event.xbutton.button); 4567 dpyinfo->grabbed |= (1 << event.xbutton.button);
4568 last_mouse_frame = f; 4568 last_mouse_frame = f;
4569 /* Ignore any mouse motion that happened
4570 before this event; any subsequent mouse-movement
4571 Emacs events should reflect only motion after
4572 the ButtonPress. */
4573 f->mouse_moved = 0;
4569 } 4574 }
4570 else 4575 else
4571 { 4576 {
4572 dpyinfo->grabbed &= ~(1 << event.xbutton.button); 4577 dpyinfo->grabbed &= ~(1 << event.xbutton.button);
4573 } 4578 }