From: Robert Roebling Date: Sat, 2 Sep 2006 22:21:19 +0000 (+0000) Subject: Don't use wxWindows::DoGetClientSize() from X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b2fcdf2b61d0a95c84371509160894861413b1cb Don't use wxWindows::DoGetClientSize() from wxTopLevelWindow as border with should not be taken into account here. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp index 68efed2a08..3ee1c1efe0 100644 --- a/src/gtk/toplevel.cpp +++ b/src/gtk/toplevel.cpp @@ -913,16 +913,20 @@ void wxTopLevelWindowGTK::DoGetClientSize( int *width, int *height ) const { wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") ); - wxWindow::DoGetClientSize( width, height ); if (height) { + *height = m_height; + // mini edge *height -= m_miniEdge*2 + m_miniTitle; } if (width) { + *width = m_width; + *width -= m_miniEdge*2; } + } void wxTopLevelWindowGTK::DoSetClientSize( int width, int height )