Merge pull request #7454 from stuartcarnie/sgc-fix-events
Suppress event propagation when event is not for main RA window
This commit is contained in:
commit
ad87112cfc
|
@ -121,11 +121,18 @@ static void app_terminate(void)
|
||||||
|
|
||||||
- (void)sendEvent:(NSEvent *)event
|
- (void)sendEvent:(NSEvent *)event
|
||||||
{
|
{
|
||||||
NSEventType event_type;
|
|
||||||
cocoa_input_data_t *apple = NULL;
|
|
||||||
[super sendEvent:event];
|
[super sendEvent:event];
|
||||||
|
|
||||||
event_type = event.type;
|
RetroArch_OSX *delegate = (RetroArch_OSX *)self.delegate;
|
||||||
|
if (event.window != delegate.window) {
|
||||||
|
// TODO(sgc): this is just a hack for the 1.7.5 release to
|
||||||
|
// ignore RA processing events that are not for the RA window.
|
||||||
|
// Ideally, we'de delegate `sendEvent` to the window listener
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
cocoa_input_data_t *apple = NULL;
|
||||||
|
NSEventType event_type = event.type;
|
||||||
|
|
||||||
switch (event_type)
|
switch (event_type)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue