Windows focus tweak

This commit is contained in:
Charles J. Cliffe
2016-05-30 19:25:46 -04:00
parent 640b4bb219
commit b8568639c3
2 changed files with 9 additions and 5 deletions
+6
View File
@@ -1490,6 +1490,12 @@ void AppFrame::OnIdle(wxIdleEvent& event) {
}
#endif
#ifdef _WIN32
if (scopeCanvas->HasFocus() || spectrumCanvas->HasFocus()) {
waterfallCanvas->SetFocus();
}
#endif
if (!this->IsActive()) {
std::this_thread::sleep_for(std::chrono::milliseconds(30));
} else {