git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16705
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
s_lastMouseWindow = NULL ;
}
{
s_lastMouseWindow = NULL ;
}
+
+ wxFrame* frame = wxDynamicCast( wxGetTopLevelParent( this ) , wxFrame ) ;
+ if ( frame )
+ {
+ if ( frame->GetLastFocus() == this )
+ frame->SetLastFocus( NULL ) ;
+ }
if ( gFocusWindow == this )
{
if ( gFocusWindow == this )
{
{
s_lastMouseWindow = NULL ;
}
{
s_lastMouseWindow = NULL ;
}
+
+ wxFrame* frame = wxDynamicCast( wxGetTopLevelParent( this ) , wxFrame ) ;
+ if ( frame )
+ {
+ if ( frame->GetLastFocus() == this )
+ frame->SetLastFocus( NULL ) ;
+ }
if ( gFocusWindow == this )
{
if ( gFocusWindow == this )
{