X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1788a5f954afb7934efa2e41ccb776a898533203..7c60222510bc5e197b12f153c4bf05db66cb0f4a:/src/osx/cocoa/evtloop.mm?ds=sidebyside diff --git a/src/osx/cocoa/evtloop.mm b/src/osx/cocoa/evtloop.mm index 27e33bca25..135f936de5 100644 --- a/src/osx/cocoa/evtloop.mm +++ b/src/osx/cocoa/evtloop.mm @@ -109,6 +109,7 @@ wxGUIEventLoop::wxGUIEventLoop() m_dummyWindow = nil; m_modalNestedLevel = 0; m_modalWindow = NULL; + m_osxLowLevelWakeUp = false; } wxGUIEventLoop::~wxGUIEventLoop() @@ -256,11 +257,11 @@ void wxGUIEventLoop::DoStop() void wxGUIEventLoop::WakeUp() { // NSEvent* cevent = [NSApp currentEvent]; - NSString* mode = [[NSRunLoop mainRunLoop] currentMode]; + // NSString* mode = [[NSRunLoop mainRunLoop] currentMode]; // when already in a mouse event handler, don't add higher level event // if ( cevent != nil && [cevent type] <= NSMouseMoved && ) - if ( [NSEventTrackingRunLoopMode isEqualToString:mode] ) + if ( m_osxLowLevelWakeUp /* [NSEventTrackingRunLoopMode isEqualToString:mode] */ ) { // NSLog(@"event for wakeup %@ in mode %@",cevent,mode); wxCFEventLoop::WakeUp();