From: Vadim Zeitlin Date: Wed, 15 Oct 2008 21:03:40 +0000 (+0000) Subject: reset deferred position/size if the window was moved immediately (#10073) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f8cba58b8431216e3da6ca5140b29e0285a07862 reset deferred position/size if the window was moved immediately (#10073) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 5ddf3d7a8c..f2b47d0fa4 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1987,6 +1987,11 @@ void wxWindowMSW::DoMoveWindow(int x, int y, int width, int height) #if USE_DEFERRED_SIZING m_pendingPosition = wxPoint(x, y); m_pendingSize = wxSize(width, height); + } + else // window was moved immediately, without deferring it + { + m_pendingPosition = wxDefaultPosition; + m_pendingSize = wxDefaultSize; #endif // USE_DEFERRED_SIZING } }