aboutsummaryrefslogtreecommitdiffstats
path: root/src/macterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/macterm.c')
-rw-r--r--src/macterm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/macterm.c b/src/macterm.c
index cae4172854e..e969a4b6dce 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -12644,6 +12644,13 @@ XTread_socket (int sd, struct input_event *bufp, int numchars, int expected)
12644 Point point; 12644 Point point;
12645 WindowPtr window_ptr = FrontNonFloatingWindow (); 12645 WindowPtr window_ptr = FrontNonFloatingWindow ();
12646 struct mac_output *mwp = (mac_output *) GetWRefCon (window_ptr); 12646 struct mac_output *mwp = (mac_output *) GetWRefCon (window_ptr);
12647 if (!IsValidWindowPtr (window_ptr))
12648 {
12649 SysBeep(1);
12650 UNBLOCK_INPUT;
12651 return 0;
12652 }
12653
12647 GetEventParameter(eventRef, kEventParamMouseWheelDelta, 12654 GetEventParameter(eventRef, kEventParamMouseWheelDelta,
12648 typeSInt32, NULL, sizeof (SInt32), 12655 typeSInt32, NULL, sizeof (SInt32),
12649 NULL, &delta); 12656 NULL, &delta);