]> git.saurik.com Git - wxWidgets.git/commit
Don't change client size of TLW when centering it in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 23 Jul 2012 15:02:53 +0000 (15:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 23 Jul 2012 15:02:53 +0000 (15:02 +0000)
commiteef432913f750a7467cd71b27c1fbfd34a61f256
tree56d4951de7e7cd45312f68465f9c2ff79f7f6141
parent8bd6a7a05c8ff0a0d2470752056a2676427be9aa
Don't change client size of TLW when centering it in wxGTK.

Setting the frame client size and then calling Centre() on it resulted in the
frame coming up with a wrong client size in wxGTK because the call to Centre()
resulted in calling wxTopLevelWindow::DoSetSize() which unconditionally reset
m_deferShowAllowed to true, undoing setting it to false in DoSetClientSize().

Only reset m_deferShowAllowed if the size was really changed but not if the
window was only moved, as happens when centering it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/toplevel.cpp