before sending a scroll-wheel event.
+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
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);