Merge pull request #1191 from comex/wxGetActiveWindow Fix focus detection on OS X by replacing wxGetActiveWindow with wxWindow...