From b2fcdf2b61d0a95c84371509160894861413b1cb Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sat, 2 Sep 2006 22:21:19 +0000 Subject: [PATCH] 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 --- src/gtk/toplevel.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ) -- 2.47.2