Mercurial > emacs
changeset 49346:91abf17b00d5
* macterm.c (XTread_socket): Checks for valid, visible window
before sending a scroll-wheel event.
author | Steven Tamm <steventamm@mac.com> |
---|---|
date | Mon, 20 Jan 2003 16:53:38 +0000 |
parents | 79a402242606 |
children | 4e87b41641d9 |
files | src/ChangeLog src/macterm.c |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Mon Jan 20 16:15:42 2003 +0000 +++ b/src/ChangeLog Mon Jan 20 16:53:38 2003 +0000 @@ -1,3 +1,8 @@ +2003-01-20 Steven Tamm <steventamm@mac.com> + + * macterm.c (XTread_socket): Checks for valid, visible window + before sending a scroll-wheel event. + 2003-01-20 Richard M. Stallman <rms@gnu.org> * xdisp.c (redisplay_window): If mini window's buffer is not
--- a/src/macterm.c Mon Jan 20 16:15:42 2003 +0000 +++ b/src/macterm.c Mon Jan 20 16:53:38 2003 +0000 @@ -12644,6 +12644,13 @@ Point point; WindowPtr window_ptr = FrontNonFloatingWindow (); struct mac_output *mwp = (mac_output *) GetWRefCon (window_ptr); + if (!IsValidWindowPtr (window_ptr)) + { + SysBeep(1); + UNBLOCK_INPUT; + return 0; + } + GetEventParameter(eventRef, kEventParamMouseWheelDelta, typeSInt32, NULL, sizeof (SInt32), NULL, &delta);