From: Stefan Csomor Date: Thu, 11 Sep 2003 20:33:02 +0000 (+0000) Subject: moved setting of internal vars in order to avoid problems in recursing (MoveWindow... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/789a620add4bdaaac758fc194c8bc9f40c65b597 moved setting of internal vars in order to avoid problems in recursing (MoveWindow calling BoundsChanged handlers which in turn call DoMoveWindow again) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index a78d68ecf0..67b1307bd7 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -1070,12 +1070,13 @@ void wxTopLevelWindowMac::DoMoveWindow(int x, int y, int width, int height) { m_x = actualX ; m_y = actualY ; - m_width = actualWidth ; - m_height = actualHeight ; if ( doMove ) ::MoveWindow((WindowRef)m_macWindow, m_x, m_y , false); // don't make frontmost + m_width = actualWidth ; + m_height = actualHeight ; + if ( doResize ) ::SizeWindow((WindowRef)m_macWindow, m_width, m_height , true); diff --git a/src/mac/toplevel.cpp b/src/mac/toplevel.cpp index a78d68ecf0..67b1307bd7 100644 --- a/src/mac/toplevel.cpp +++ b/src/mac/toplevel.cpp @@ -1070,12 +1070,13 @@ void wxTopLevelWindowMac::DoMoveWindow(int x, int y, int width, int height) { m_x = actualX ; m_y = actualY ; - m_width = actualWidth ; - m_height = actualHeight ; if ( doMove ) ::MoveWindow((WindowRef)m_macWindow, m_x, m_y , false); // don't make frontmost + m_width = actualWidth ; + m_height = actualHeight ; + if ( doResize ) ::SizeWindow((WindowRef)m_macWindow, m_width, m_height , true);