]> git.saurik.com Git - wxWidgets.git/commitdiff
When enabling events, use CommonModes instead of DefaultMode for the RunLoop. In...
authorKevin Hock <hockkn@yahoo.com>
Tue, 28 Sep 2004 23:23:21 +0000 (23:23 +0000)
committerKevin Hock <hockkn@yahoo.com>
Tue, 28 Sep 2004 23:23:21 +0000 (23:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/gsockosx.cpp
src/mac/corefoundation/gsockosx.cpp

index a68578e1c9171fe0249d43a7822f65a73cce27d8..f9c8028a34eca7dc2e496ea134445b73de962c21 100644 (file)
@@ -168,7 +168,7 @@ void GSocketGUIFunctionsTableConcrete::Enable_Events(GSocket *socket)
     struct MacGSocketData* data = _GSocket_Get_Mac_Socket(socket);
     if (!data) return;
 
-    CFRunLoopAddSource(CFRunLoopGetCurrent(), data->source, kCFRunLoopDefaultMode);
+    CFRunLoopAddSource(CFRunLoopGetCurrent(), data->source, kCFRunLoopCommonModes);
 }
 
 void GSocketGUIFunctionsTableConcrete::Disable_Events(GSocket *socket)
index a68578e1c9171fe0249d43a7822f65a73cce27d8..f9c8028a34eca7dc2e496ea134445b73de962c21 100644 (file)
@@ -168,7 +168,7 @@ void GSocketGUIFunctionsTableConcrete::Enable_Events(GSocket *socket)
     struct MacGSocketData* data = _GSocket_Get_Mac_Socket(socket);
     if (!data) return;
 
-    CFRunLoopAddSource(CFRunLoopGetCurrent(), data->source, kCFRunLoopDefaultMode);
+    CFRunLoopAddSource(CFRunLoopGetCurrent(), data->source, kCFRunLoopCommonModes);
 }
 
 void GSocketGUIFunctionsTableConcrete::Disable_Events(GSocket *socket)