Revert "Change these ifdefs"

This reverts commit 245f265098044fe980c608c41213493b3722ef1a.
This commit is contained in:
twinaphex 2018-08-31 21:49:16 +02:00
parent 245f265098
commit 10f374182f

View File

@ -74,7 +74,7 @@ id<ApplePlatform> apple_platform;
apple_view_type_t _vt;
NSView* _renderView;
id _sleepActivity;
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
#if !(defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
WindowListener *_listener;
#endif
}
@ -265,12 +265,12 @@ static char** waiting_argv;
[self.window setCollectionBehavior:NS_WINDOW_COLLECTION_BEHAVIOR_FULLSCREEN_PRIMARY];
}
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
#if !(defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
_listener = [WindowListener new];
#endif
[self.window setAcceptsMouseMovedEvents: YES];
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
#if !(defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
[self.window setNextResponder:_listener];
self.window.delegate = _listener;
#endif
@ -342,7 +342,7 @@ static char** waiting_argv;
[_renderView setFrame: [[self.window contentView] bounds]];
self.window.contentView = _renderView;
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
#if !(defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
[self.window.contentView setNextResponder:_listener];
#endif
}