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:
committed by
Vadim Zeitlin
parent
4e5904a4cc
commit
dd2d62c703
@@ -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
|
||||
|
Reference in New Issue
Block a user