don't generate size events when the window is unmapped, this is at best unnecessary and also breaks window layout in some situations [backport from HEAD rev 1.683]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2137,16 +2137,11 @@ void gtk_window_size_callback( GtkWidget *WXUNUSED(widget),
|
|||||||
if ((client_width == win->m_oldClientWidth) && (client_height == win->m_oldClientHeight))
|
if ((client_width == win->m_oldClientWidth) && (client_height == win->m_oldClientHeight))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#if 0
|
if ( !client_width && !client_height )
|
||||||
wxPrintf( wxT("size_allocate ") );
|
{
|
||||||
if (win->GetClassInfo() && win->GetClassInfo()->GetClassName())
|
// the window is currently unmapped, don't generate size events
|
||||||
wxPrintf( win->GetClassInfo()->GetClassName() );
|
return;
|
||||||
wxPrintf( wxT(" %d %d %d %d\n"),
|
}
|
||||||
alloc->x,
|
|
||||||
alloc->y,
|
|
||||||
alloc->width,
|
|
||||||
alloc->height );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
win->m_oldClientWidth = client_width;
|
win->m_oldClientWidth = client_width;
|
||||||
win->m_oldClientHeight = client_height;
|
win->m_oldClientHeight = client_height;
|
||||||
|
Reference in New Issue
Block a user