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
+3 -5
View File
@@ -260,11 +260,9 @@ void SpectrumCanvas::OnMouseEnterWindow(wxMouseEvent& event) {
InteractiveCanvas::OnMouseEnterWindow(event);
SetCursor(wxCURSOR_SIZEWE);
#ifdef _WIN32
if (waterfallCanvas) {
if (wxGetApp().getAppFrame()->canFocus()) {
this->SetFocus();
}
}
if (wxGetApp().getAppFrame()->canFocus()) {
this->SetFocus();
}
#endif
}