support an api with SetIgnoreMouseEvents, and worked fine with osx

This commit is contained in:
billyct 2015-12-06 10:14:54 +08:00
parent e1d7ef7e24
commit 5f092a6c65
6 changed files with 15 additions and 0 deletions

View file

@ -687,6 +687,10 @@ bool NativeWindowMac::IsDocumentEdited() {
return [window_ isDocumentEdited];
}
void NativeWindowMac::SetIgnoreMouseEvents(bool ignore) {
[window_ setIgnoresMouseEvents:ignore];
}
bool NativeWindowMac::HasModalDialog() {
return [window_ attachedSheet] != nil;
}