[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Closing popup causes mouse event
From: |
YAMAMOTO Mitsuharu |
Subject: |
Re: Closing popup causes mouse event |
Date: |
Tue, 18 Oct 2005 11:03:35 +0900 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) |
>>>>> On Sat, 15 Oct 2005 22:34:29 +0200, address@hidden (Kim F. Storm) said:
> David Reitter <address@hidden> writes:
>> When a popup menu is opened (for example with C-mouse-1 or
>> S-mouse-1) and closed by clicking somewhere else, it seems like an
>> extra mouse event is sent.
>>
>> This can cause the point to be set, the region to be removed or
>> extended and what not - all of which is undesirable and unexpected.
> It does not happen for me (GNU/Linux X11 non-GTK build).
The problem is Mac-specific. The following small patch seems to work
for this particular case, but the general case is not so easy.
(Repeated clicks of C-mouse-1 at non-menu position will show the
message `<C-mouse-1> is undefined' on the Carbon port.) I'll write
something about this to emacs-devel.
YAMAMOTO Mitsuharu
address@hidden
Index: src/macterm.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/macterm.c,v
retrieving revision 1.139
diff -c -r1.139 macterm.c
*** src/macterm.c 16 Oct 2005 02:22:59 -0000 1.139
--- src/macterm.c 18 Oct 2005 01:55:46 -0000
***************
*** 9521,9527 ****
}
}
! if (er.what != mouseDown && part_code != inContent)
break;
switch (part_code)
--- 9521,9528 ----
}
}
! if (er.what != mouseDown &&
! (part_code != inContent || dpyinfo->grabbed == 0))
break;
switch (part_code)