From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: emacs-devel@gnu.org
Subject: Re: Mac OS X Carbon Emacs problem with mouse-2
Date: Tue, 21 Sep 2004 23:16:20 +0900 (JST) [thread overview]
Message-ID: <20040921.231620.217845021.mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <wzmzzj7q8s.fsf@ordesa.cs.uu.nl>
>>>>> On Tue, 21 Sep 2004 14:36:51 +0200, Piet van Oostrum <piet@cs.uu.nl> said:
> When I click with the mouse wheel button, only a 'down-mouse-2'
> event is generated rather than a combo 'down-mouse-2 mouse-2' as it
> happens with mouse-3.
Could you test the following patch? I can't test it because I don't
have a wheel mouse.
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
*** src/macterm.c.~1.77.~ Tue Sep 21 11:27:01 2004
--- src/macterm.c Tue Sep 21 23:00:37 2004
***************
*** 7081,7092 ****
if (!result && GetEventClass (eventRef) == kEventClassMouse)
{
UInt32 kind = GetEventKind (eventRef);
! if (kind == kEventMouseDown && !(eventRec->what == mouseDown))
{
eventRec->what = mouseDown;
result=1;
}
! if (kind == kEventMouseUp && !(eventRec->what == mouseUp))
{
eventRec->what = mouseUp;
result=1;
--- 7081,7092 ----
if (!result && GetEventClass (eventRef) == kEventClassMouse)
{
UInt32 kind = GetEventKind (eventRef);
! if (kind == kEventMouseDown)
{
eventRec->what = mouseDown;
result=1;
}
! else if (kind == kEventMouseUp)
{
eventRec->what = mouseUp;
result=1;
next prev parent reply other threads:[~2004-09-21 14:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-21 12:36 Mac OS X Carbon Emacs problem with mouse-2 Piet van Oostrum
2004-09-21 14:16 ` YAMAMOTO Mitsuharu [this message]
2004-09-21 15:07 ` Piet van Oostrum
[not found] ` <16720.17344.80483.650163@ordesa.cs.uu.nl>
[not found] ` <wlbrfyk91t.wl@church.math.s.chiba-u.ac.jp>
2004-09-22 10:46 ` Piet van Oostrum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040921.231620.217845021.mituharu@math.s.chiba-u.ac.jp \
--to=mituharu@math.s.chiba-u.ac.jp \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.