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:
parent
2bdbfa86da
commit
539e69a9fd
2 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue