Mercurial > emacs
comparison src/macterm.c @ 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 | c49640262de0 |
children | 0ffb4e489776 |
comparison
equal
deleted
inserted
replaced
49345:79a402242606 | 49346:91abf17b00d5 |
---|---|
12642 { | 12642 { |
12643 SInt32 delta; | 12643 SInt32 delta; |
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); |
12650 GetEventParameter(eventRef, kEventParamMouseLocation, | 12657 GetEventParameter(eventRef, kEventParamMouseLocation, |
12651 typeQDPoint, NULL, sizeof (Point), | 12658 typeQDPoint, NULL, sizeof (Point), |