1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-19 01:10:57 -08:00

* macterm.c (XTread_socket): Checks for valid, visible window

before sending a scroll-wheel event.
This commit is contained in:
Steven Tamm 2003-01-20 16:53:38 +00:00
parent 2bdbfa86da
commit 539e69a9fd
2 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -12644,6 +12644,13 @@ XTread_socket (int sd, struct input_event *bufp, int numchars, int expected)
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);