|
|
|
@ -1086,8 +1086,19 @@ NSArray* AllLoopModes = [NSArray arrayWithObjects: NSDefaultRunLoopMode, NSEvent |
|
|
|
- (bool) ignoreUserInput |
|
|
|
{ |
|
|
|
auto parentWindow = objc_cast<AvnWindow>([self window]); |
|
|
|
|
|
|
|
if(parentWindow == nil || ![parentWindow shouldTryToHandleEvents]) |
|
|
|
{ |
|
|
|
auto window = dynamic_cast<WindowImpl*>(_parent.getRaw()); |
|
|
|
|
|
|
|
if(window != nullptr) |
|
|
|
{ |
|
|
|
window->WindowEvents->GotInputWhenDisabled(); |
|
|
|
} |
|
|
|
|
|
|
|
return TRUE; |
|
|
|
} |
|
|
|
|
|
|
|
return FALSE; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1095,12 +1106,6 @@ NSArray* AllLoopModes = [NSArray arrayWithObjects: NSDefaultRunLoopMode, NSEvent |
|
|
|
{ |
|
|
|
if([self ignoreUserInput]) |
|
|
|
{ |
|
|
|
auto window = dynamic_cast<WindowImpl*>(_parent.getRaw()); |
|
|
|
|
|
|
|
if(window != nullptr) |
|
|
|
{ |
|
|
|
window->WindowEvents->GotInputWhenDisabled(); |
|
|
|
} |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1248,12 +1253,6 @@ NSArray* AllLoopModes = [NSArray arrayWithObjects: NSDefaultRunLoopMode, NSEvent |
|
|
|
{ |
|
|
|
if([self ignoreUserInput]) |
|
|
|
{ |
|
|
|
auto window = dynamic_cast<WindowImpl*>(_parent.getRaw()); |
|
|
|
|
|
|
|
if(window != nullptr) |
|
|
|
{ |
|
|
|
window->WindowEvents->GotInputWhenDisabled(); |
|
|
|
} |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
|