[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/keyboard.c
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] Changes to emacs/src/keyboard.c |
Date: |
Tue, 04 Oct 2005 00:23:13 -0400 |
Index: emacs/src/keyboard.c
diff -c emacs/src/keyboard.c:1.838 emacs/src/keyboard.c:1.839
*** emacs/src/keyboard.c:1.838 Sat Oct 1 11:08:25 2005
--- emacs/src/keyboard.c Tue Oct 4 04:23:12 2005
***************
*** 5507,5519 ****
if (CONSP (down)
&& INTEGERP (XCAR (down)) && INTEGERP (XCDR (down)))
{
! xdiff = XFASTINT (event->x) - XFASTINT (XCAR (down));
! ydiff = XFASTINT (event->y) - XFASTINT (XCDR (down));
}
if (xdiff < double_click_fuzz && xdiff > - double_click_fuzz
! && ydiff < double_click_fuzz
! && ydiff > - double_click_fuzz)
/* Mouse hasn't moved (much). */
event->modifiers |= click_modifier;
else
--- 5507,5529 ----
if (CONSP (down)
&& INTEGERP (XCAR (down)) && INTEGERP (XCDR (down)))
{
! xdiff = XINT (event->x) - XINT (XCAR (down));
! ydiff = XINT (event->y) - XINT (XCDR (down));
}
if (xdiff < double_click_fuzz && xdiff > - double_click_fuzz
! && ydiff < double_click_fuzz && ydiff > - double_click_fuzz
! /* Maybe the mouse has moved a lot, caused scrolling, and
! eventually ended up at the same screen position (but
! not buffer position) in which case it is a drag, not
! a click. */
! /* FIXME: OTOH if the buffer position has changed
! because of a timer or process filter rather than
! because of mouse movement, it should be considered as
! a click. But mouse-drag-region completely ignores
! this case and it hasn't caused any real problem, so
! it's probably OK to ignore it as well. */
! && EQ (Fcar (Fcdr (start_pos)), Fcar (Fcdr (position))))
/* Mouse hasn't moved (much). */
event->modifiers |= click_modifier;
else