X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed7a557b5330f1bbc62f7b6230d6524e54ccede3..36af0bc423a1c7bd50d7454f11f439b1628631ca:/src/gtk/frame.cpp diff --git a/src/gtk/frame.cpp b/src/gtk/frame.cpp index e78e9679b6..075ed1e7f6 100644 --- a/src/gtk/frame.cpp +++ b/src/gtk/frame.cpp @@ -42,7 +42,7 @@ void gtk_frame_size_callback( GtkWidget *WXUNUSED(widget), GtkAllocation* alloc, printf( ".\n" ); */ - win->GtkOnSize( alloc->width, alloc->height ); + win->GtkOnSize( alloc->x, alloc->y, alloc->width, alloc->height ); }; //----------------------------------------------------------------------------- @@ -194,8 +194,11 @@ void wxFrame::GetClientSize( int *width, int *height ) const }; }; -void wxFrame::GtkOnSize( int width, int height ) +void wxFrame::GtkOnSize( int x, int y, int width, int height ) { + m_x = x; + m_y = y; + if ((m_height == height) && (m_width == width) && (m_sizeSet)) return; if (!m_mainWindow) return;