git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11868
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( gs_mouseCapture == this )
ReleaseMouse();
if ( gs_mouseCapture == this )
ReleaseMouse();
if (gs_activeFrame == this)
if (gs_activeFrame == this)
+ {
+ // activate next frame in Z-order:
+ if ( m_wnd->prev )
+ {
+ wxWindowMGL *win = (wxWindowMGL*)m_wnd->prev->userData;
+ win->SetFocus();
+ }
if ( gs_focusedWindow == this )
KillFocus();
if ( gs_focusedWindow == this )
KillFocus();
if ( gs_windowUnderMouse == this )
gs_windowUnderMouse = NULL;
if ( gs_windowUnderMouse == this )
gs_windowUnderMouse = NULL;