window, window->m_imData->lastKeyEvent);
}
- const wxWxCharBuffer data(wxGTK_CONV_BACK(str));
+ const wxWxCharBuffer data(wxGTK_CONV_BACK_SYS(str));
if( !data )
return;
if ((client_width == win->m_oldClientWidth) && (client_height == win->m_oldClientHeight))
return;
-#if 0
- wxPrintf( wxT("size_allocate ") );
- if (win->GetClassInfo() && win->GetClassInfo()->GetClassName())
- wxPrintf( win->GetClassInfo()->GetClassName() );
- wxPrintf( wxT(" %d %d %d %d\n"),
- alloc->x,
- alloc->y,
- alloc->width,
- alloc->height );
-#endif
+ if ( !client_width && !client_height )
+ {
+ // the window is currently unmapped, don't generate size events
+ return;
+ }
win->m_oldClientWidth = client_width;
win->m_oldClientHeight = client_height;