Fix for bug 33742 -- call EventAvail instead of OSEventAvail, and look for udpate events. r=beard

This commit is contained in:
sfraser%netscape.com 2000-03-29 23:56:30 +00:00
parent 2027a0896e
commit 63abcaf4d2

View File

@ -250,7 +250,7 @@ void nsMacMessagePump::DoMessagePump()
* @param NONE
* @return A boolean which states whether we have a real event
*/
#define kEventAvailMask (mDownMask | mUpMask | keyDownMask | keyUpMask | autoKeyMask | activMask | osMask)
#define kEventAvailMask (mDownMask | mUpMask | keyDownMask | keyUpMask | autoKeyMask | updateMask | activMask | osMask)
PRBool nsMacMessagePump::GetEvent(EventRecord &theEvent)
{
@ -260,7 +260,7 @@ PRBool nsMacMessagePump::GetEvent(EventRecord &theEvent)
// Make sure we call WNE if we have user events, or the mouse is down
EventRecord tempEvent;
if (::OSEventAvail(kEventAvailMask, &tempEvent) || !(tempEvent.modifiers & btnState))
if (::EventAvail(kEventAvailMask, &tempEvent) || !(tempEvent.modifiers & btnState))
sNextWNECall = 0;
// don't call more than once every 4 ticks