Bug 1016200 - Single click stop working in web content, require double click. r=spohl

This commit is contained in:
Steven Michaud 2014-06-30 12:28:45 -05:00
parent 482974e2f2
commit 71940f594d

View File

@ -571,9 +571,10 @@ nsAppShell::ProcessNextNativeEvent(bool aMayWait)
}
EventAttributes attrs = GetEventAttributes(currentEvent);
UInt32 eventKind = GetEventKind(currentEvent);
UInt32 eventClass = GetEventClass(currentEvent);
bool osCocoaEvent =
((GetEventClass(currentEvent) == 'cgs ') &&
((eventKind == NSAppKitDefined) || (eventKind == NSSystemDefined)));
((eventClass == 'appl') ||
((eventClass == 'cgs ') && (eventKind != NSApplicationDefined)));
// If attrs is kEventAttributeUserEvent or kEventAttributeMonitored
// (i.e. a user input event), we shouldn't process it here while
// aMayWait is false. Likewise if currentEvent will eventually be