X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0da0dbabf2d3cf8e1a76a2c82608822d15d0625..30083ad8e7c0eb9ea3dcf4f2588149eeb7fe3e32:/src/gtk/window.cpp diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index dd6be8cf36..a9a67e6c68 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1158,7 +1158,7 @@ gtk_wxwindow_commit_cb (GtkIMContext *context, window, window->m_imData->lastKeyEvent); } - const wxWxCharBuffer data(wxGTK_CONV_BACK(str)); + const wxWxCharBuffer data(wxGTK_CONV_BACK_SYS(str)); if( !data ) return; @@ -2137,16 +2137,11 @@ void gtk_window_size_callback( GtkWidget *WXUNUSED(widget), 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;