X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/262a153683d362d9bff41ed0adf09db194245068..d23ec02c6ab52f60349601be999bab4cf6acbdc4:/src/common/toplvcmn.cpp diff --git a/src/common/toplvcmn.cpp b/src/common/toplvcmn.cpp index 1645b2bf97..d99000e5e2 100644 --- a/src/common/toplvcmn.cpp +++ b/src/common/toplvcmn.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: common/toplvcmn.cpp +// Name: src/common/toplvcmn.cpp // Purpose: common (for all platforms) wxTopLevelWindow functions // Author: Julian Smart, Vadim Zeitlin // Created: 01/02/97 @@ -187,6 +187,10 @@ void wxTopLevelWindowBase::DoCentre(int dir) rectParent = rectDisplay; } + // centering maximized window on screen is no-op + if((rectParent == rectDisplay) && IsMaximized()) + return; + // the new window rect candidate wxRect rect = GetRect().CentreIn(rectParent, dir); @@ -345,4 +349,3 @@ void wxTopLevelWindowBase::RequestUserAttention(int WXUNUSED(flags)) // it's probably better than do nothing, isn't it? Raise(); } -