removed focus assert

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-11-09 17:58:50 +00:00
parent 2a4c85e755
commit c0ad3d42d5
2 changed files with 16 additions and 2 deletions

View File

@@ -1828,7 +1828,14 @@ static gint gtk_window_focus_out_callback( GtkWidget *widget, GdkEvent *WXUNUSED
if ( !g_activeFrameLostFocus && g_activeFrame )
{
wxASSERT_MSG( wxGetTopLevelParent(win) == g_activeFrame, wxT("unfocusing window that haven't gained focus properly") )
// VZ: commenting this out because it does happen (although not easy
// to reproduce, I only see it when using wxMiniFrame and not
// always) and makes using Mahogany quite annoying
#if 0
wxASSERT_MSG( wxGetTopLevelParent(win) == g_activeFrame,
wxT("unfocusing window that hasn't gained focus properly") )
#endif // 0
g_activeFrameLostFocus = TRUE;
}

View File

@@ -1828,7 +1828,14 @@ static gint gtk_window_focus_out_callback( GtkWidget *widget, GdkEvent *WXUNUSED
if ( !g_activeFrameLostFocus && g_activeFrame )
{
wxASSERT_MSG( wxGetTopLevelParent(win) == g_activeFrame, wxT("unfocusing window that haven't gained focus properly") )
// VZ: commenting this out because it does happen (although not easy
// to reproduce, I only see it when using wxMiniFrame and not
// always) and makes using Mahogany quite annoying
#if 0
wxASSERT_MSG( wxGetTopLevelParent(win) == g_activeFrame,
wxT("unfocusing window that hasn't gained focus properly") )
#endif // 0
g_activeFrameLostFocus = TRUE;
}