diff options
author | Sven Gothel <[email protected]> | 2009-06-15 05:08:34 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-06-15 05:08:34 +0000 |
commit | dc05eca74f556b8b398fe8ebc963484e1f75caf4 (patch) | |
tree | 02471c06efc7985f462f68e33c14254995377dbd | |
parent | d99a2964f2891e7b3b214142ad003b198fe5a688 (diff) |
NEWT MacOSX: Encapsulate [enter|exit]FullScreenMode calls with exception handler, due to lack of support in pre 10.5
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1951 232f8b59-042b-4e1e-8c03-345bb8c30851
-rw-r--r-- | src/newt/native/MacWindow.m | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/newt/native/MacWindow.m b/src/newt/native/MacWindow.m index 70170e525..e22fa1b17 100644 --- a/src/newt/native/MacWindow.m +++ b/src/newt/native/MacWindow.m @@ -67,10 +67,13 @@ static NewtView * changeContentView(JNIEnv *env, jobject javaWindowObject, NSWin NewtView* oldView = NULL; if(NULL!=oldNSView) { +NS_DURING + // Available >= 10.5 - Makes the taskbar disapear if([oldNSView isInFullScreenMode]) { - // FIXME: Available >= 10.5 - Makes the taskbar disapear [oldNSView exitFullScreenModeWithOptions: NULL]; } +NS_HANDLER +NS_ENDHANDLER if( [oldNSView isMemberOfClass:[NewtView class]] ) { oldView = (NewtView *) oldNSView; @@ -175,10 +178,13 @@ JNIEXPORT jlong JNICALL Java_com_sun_javafx_newt_macosx_MacWindow_createWindow0 // Set the content view (void) changeContentView(env, jthis, window, view); +NS_DURING + // Available >= 10.5 - Makes the taskbar disapear if(fullscreen) { - // FIXME: Available >= 10.5 - Makes the taskbar disapear [view enterFullScreenMode: screen withOptions:NULL]; } +NS_HANDLER +NS_ENDHANDLER // Set the next responder to be the window so that we can forward // right mouse button down events |