[Bf-blender-cvs] [e58fe20] blender-v2.72-release: OSX: as an prerequisite to make Dalai's upcoming "area_fullsceen" work, make sure the window states are correct in the lion_fs animation phase. This also assures the CTX_wm_window(C) is okay.
Jens Verwiebe
noreply at git.blender.org
Wed Oct 15 13:08:24 CEST 2014
Commit: e58fe2021f149e8c700dd194fbae02ba96eec229
Author: Jens Verwiebe
Date: Fri Oct 10 12:56:58 2014 +0200
Branches: blender-v2.72-release
https://developer.blender.org/rBe58fe2021f149e8c700dd194fbae02ba96eec229
OSX: as an prerequisite to make Dalai's upcoming "area_fullsceen" work,
make sure the window states are correct in the lion_fs animation phase.
This also assures the CTX_wm_window(C) is okay.
===================================================================
M intern/ghost/intern/GHOST_WindowCocoa.mm
===================================================================
diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm
index f9b8899..ec8be15 100644
--- a/intern/ghost/intern/GHOST_WindowCocoa.mm
+++ b/intern/ghost/intern/GHOST_WindowCocoa.mm
@@ -962,7 +962,12 @@ GHOST_TWindowState GHOST_WindowCocoa::getState() const
if (masks & NSFullScreenWindowMask) {
// Lion style fullscreen
- state = GHOST_kWindowStateFullScreen;
+ if (!m_immediateDraw) {
+ state = GHOST_kWindowStateFullScreen;
+ }
+ else {
+ state = GHOST_kWindowStateNormal;
+ }
}
else
#endif
@@ -976,7 +981,12 @@ GHOST_TWindowState GHOST_WindowCocoa::getState() const
state = GHOST_kWindowStateMaximized;
}
else {
+ if (m_immediateDraw) {
+ state = GHOST_kWindowStateFullScreen;
+ }
+ else {
state = GHOST_kWindowStateNormal;
+ }
}
[pool drain];
return state;
More information about the Bf-blender-cvs
mailing list