From 9c1d9f57980a0257be95b944e0f99b77c3fc5fed Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Fri, 14 Aug 2015 20:41:52 -0400 Subject: [PATCH] IsVisible is *not* for app visibility; Hello there, IsActive() --- src/AppFrame.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/AppFrame.cpp b/src/AppFrame.cpp index 56ad675..7799cfd 100644 --- a/src/AppFrame.cpp +++ b/src/AppFrame.cpp @@ -782,15 +782,11 @@ void AppFrame::OnIdle(wxIdleEvent& event) { waterfallCanvas->processInputQueue(); demodWaterfallCanvas->processInputQueue(); - if (this->IsVisible()) { -#ifdef __APPLE__ - usleep(5000); -#endif - } else { + if (!this->IsActive()) { #ifndef _WIN32 - usleep(15000); + usleep(50000); #else - Sleep(15); + Sleep(50); #endif }