From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jpw@shootybangbang.com (John Paul Wallington) Newsgroups: gmane.emacs.devel Subject: Re: mac - crash when scrolling wheely mouse when all frames are minimized Date: Mon, 20 Jan 2003 16:53:24 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200301201534.h0KFYZJt000393@coco.shootybangbang.com> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1043081300 21836 80.91.224.249 (20 Jan 2003 16:48:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2003 16:48:20 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18af5u-0005fq-00 for ; Mon, 20 Jan 2003 17:48:18 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18afGr-0007Al-00 for ; Mon, 20 Jan 2003 17:59:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18af72-0004Do-03 for emacs-devel@quimby.gnus.org; Mon, 20 Jan 2003 11:49:28 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18af4a-0003AD-00 for emacs-devel@gnu.org; Mon, 20 Jan 2003 11:46:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18af3d-0002c4-00 for emacs-devel@gnu.org; Mon, 20 Jan 2003 11:45:58 -0500 Original-Received: from host217-44-221-195.range217-44.btcentralplus.com ([217.44.221.195] helo=china.shootybangbang.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18af2X-0002Kk-00 for emacs-devel@gnu.org; Mon, 20 Jan 2003 11:44:49 -0500 Original-Received: from jpw by china.shootybangbang.com with local (Exim 3.36 #1 (Debian)) id 18afAq-0004mJ-00; Mon, 20 Jan 2003 16:53:24 +0000 Original-To: Andrew Choi In-reply-to: (message from Andrew Choi on Mon, 20 Jan 2003 09:20:28 -0700) X-Attribution: jpw X-Face: R(_z-rF:grdKO.*u`n); p.i$Eiz=h^CO5eDYv"4:K@#\HN09*Ykx}}B{kF/KH}%f_o^Wp List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10898 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10898 Andrew Choi wrote: > > 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 Your fix works. Thanks! -- John Paul Wallington