|
|
@@ -425,7 +425,7 @@ private:
|
|
|
[[Window parentWindow] removeChildWindow:Window];
|
|
|
WindowBaseImpl::Show();
|
|
|
|
|
|
- return SetWindowState(_lastWindowState);
|
|
|
+ return SetWindowState(Normal);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1184,6 +1184,25 @@ NSArray* AllLoopModes = [NSArray arrayWithObjects: NSDefaultRunLoopMode, NSEvent
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+- (void)windowDidMiniaturize:(NSNotification *)notification
|
|
|
+{
|
|
|
+ auto parent = dynamic_cast<IWindowStateChanged*>(_parent.operator->());
|
|
|
+
|
|
|
+ if(parent != nullptr)
|
|
|
+ {
|
|
|
+ parent->WindowStateChanged();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+- (void)windowDidDeminiaturize:(NSNotification *)notification
|
|
|
+{
|
|
|
+ auto parent = dynamic_cast<IWindowStateChanged*>(_parent.operator->());
|
|
|
+
|
|
|
+ if(parent != nullptr)
|
|
|
+ {
|
|
|
+ parent->WindowStateChanged();
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- (BOOL)windowShouldZoom:(NSWindow *)window toFrame:(NSRect)newFrame
|
|
|
{
|