From: Andrew Choi <akochoi@shaw.ca>
Cc: emacs-devel@gnu.org
Subject: Re: mac - crash when scrolling wheely mouse when all frames are minimized
Date: Mon, 20 Jan 2003 09:20:28 -0700 [thread overview]
Message-ID: <m2ptqrztbn.fsf@owlbear.local> (raw)
In-Reply-To: <200301201534.h0KFYZJt000393@coco.shootybangbang.com>
jpw@shootybangbang.com (John Paul Wallington) writes:
> On Mac OS X.1.5, minimizing all frames (but ensuring that Emacs has the
> focus; the global menubar is Emacs') then scrolling the mouse wheel
> causes a crash:
>
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> 0x0013d2dc in XTread_socket (sd=0, bufp=0xbffd11c8, numchars=2407900, expected=-1073934024) at macterm.c:12660
> 12660 XSETFRAME (bufp->frame_or_window, mwp->mFP);
I don't use a wheel mouse so I can't test this. But please try adding
the following lines:
if (!IsValidWindowPtr (window_ptr))
{
SysBeep (1);
UNBLOCK_INPUT;
return 0;
}
in macterm.c (XTread_socket):
case kEventClassMouse:
if (GetEventKind (eventRef) == kEventMouseWheelMoved)
{
SInt32 delta;
Point point;
WindowPtr window_ptr = FrontNonFloatingWindow ();
struct mac_output *mwp = (mac_output *) GetWRefCon (window_ptr);
<=== add the code here
GetEventParameter(eventRef, kEventParamMouseWheelDelta,
typeSInt32, NULL, sizeof (SInt32),
NULL, &delta);
next prev parent reply other threads:[~2003-01-20 16:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-20 15:34 mac - crash when scrolling wheely mouse when all frames are minimized John Paul Wallington
2003-01-20 16:20 ` Andrew Choi [this message]
2003-01-20 16:53 ` John Paul Wallington
2003-01-20 16:54 ` Steven Tamm
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ptqrztbn.fsf@owlbear.local \
--to=akochoi@shaw.ca \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).