Suppress size event when IsMaximized is called on OSX

IsMaximized internally calls [NSWindow isZoomed] which triggers a
windowWillResize call. Resize events will be ignored while calling
isZoomed.

Closes #17407.

See https://github.com/wxWidgets/wxWidgets/pull/740
This commit is contained in:
Tobias Taschner
2018-02-20 17:09:39 +01:00
committed by Vadim Zeitlin
parent 4e5904a4cc
commit dd2d62c703
3 changed files with 13 additions and 1 deletions

View File

@@ -116,6 +116,8 @@ public:
void OSXHandleMiniaturize(double WXUNUSED(timestampsec), bool miniaturized);
void OSXSetIgnoreResizing(bool value) { m_ignoreResizing = value; }
void WindowWasPainted();
virtual bool Destroy();
@@ -154,6 +156,7 @@ private :
#if wxUSE_GRAPHICS_CONTEXT
wxGraphicsPath m_shapePath;
#endif // wxUSE_GRAPHICS_CONTEXT
bool m_ignoreResizing;
};
// list of all frames and modeless dialogs