Skip to content

Commit

Permalink
Made focus change Linux only for now
Browse files Browse the repository at this point in the history
  • Loading branch information
aardappel committed Sep 26, 2022
1 parent 8896666 commit 4778c34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/myframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,10 @@ struct MyFrame : wxFrame {
}

void ReFocus() {
if (wxWindow::HasFocus()) {
#ifdef __WXGTK__
if (wxWindow::HasFocus())
#endif
{
if (GetCurTab()) GetCurTab()->SetFocus();
}
}
Expand Down

0 comments on commit 4778c34

Please sign in to comment.