diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index 5629feac3e..c05de89a4f 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -1818,7 +1818,8 @@ long wxPyGetWinHandle(wxWindow* win) { #endif #ifdef __WXMAC__ - return (long)MAC_WXHWND(win->MacGetRootWindow()); + //return (long)MAC_WXHWND(win->MacGetTopLevelWindowRef()); + return (long)win->GetHandle(); #endif return 0;