/////////////////////////////////////////////////////////////////////////////
-// 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
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);
// it's probably better than do nothing, isn't it?
Raise();
}
-