Commit f6beb73a authored by hybrid's avatar hybrid

Added some window status fixes for OSX.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1602 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 04d22188
...@@ -43,6 +43,11 @@ ...@@ -43,6 +43,11 @@
_quit = TRUE; _quit = TRUE;
} }
- (void)windowWillClose:(id)sender
{
_quit = TRUE;
}
- (void)windowDidResize:(NSNotification *)aNotification - (void)windowDidResize:(NSNotification *)aNotification
{ {
NSWindow *window; NSWindow *window;
......
...@@ -485,14 +485,16 @@ bool CIrrDeviceMacOSX::isWindowActive() const ...@@ -485,14 +485,16 @@ bool CIrrDeviceMacOSX::isWindowActive() const
bool CIrrDeviceMacOSX::isWindowFocused() const bool CIrrDeviceMacOSX::isWindowFocused() const
{ {
// TODO: return proper value if (_window != NULL)
return true; return [(NSWindow *)_window isKeyWindow];
return false;
} }
bool CIrrDeviceMacOSX::isWindowMinimized() const bool CIrrDeviceMacOSX::isWindowMinimized() const
{ {
// TODO: return proper value if (_window != NULL)
return [(NSWindow *)_window isMiniaturized];
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment