]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/app.cpp
Don't explicitly set the background colour for wxChoice.
[wxWidgets.git] / src / dfb / app.cpp
index 931a9bfbe3345fddc18b01e453d829c04b02c91b..0cc0506b3ff38401f0ead7899cb81a551b0f6ebc 100644 (file)
@@ -148,17 +148,9 @@ bool wxApp::SetDisplayMode(const wxVideoMode& mode)
 
 void wxApp::WakeUpIdle()
 {
-#if wxUSE_THREADS
-    if (!wxThread::IsMain())
-        wxMutexGuiEnter();
-#endif
-
+    // we don't need a mutex here, since we use the wxConsoleEventLoop
+    // and wxConsoleEventLoop::WakeUp() is thread-safe
     wxEventLoopBase * const loop = wxEventLoop::GetActive();
     if ( loop )
         loop->WakeUp();
-
-#if wxUSE_THREADS
-    if (!wxThread::IsMain())
-        wxMutexGuiLeave();
-#endif
 }