[Bf-blender-cvs] [40c8068] blender-v2.72-release: OSX: ensure windows are restored at their saved position, meaning here we need to take docksize into account
Jens Verwiebe
noreply at git.blender.org
Fri Oct 3 15:24:01 CEST 2014
Commit: 40c8068f204391c21e8328b57f89348185cd3249
Author: Jens Verwiebe
Date: Wed Sep 24 20:55:38 2014 +0200
Branches: blender-v2.72-release
https://developer.blender.org/rB40c8068f204391c21e8328b57f89348185cd3249
OSX: ensure windows are restored at their saved position,
meaning here we need to take docksize into account
===================================================================
M intern/ghost/intern/GHOST_SystemCocoa.mm
===================================================================
diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm
index 6fefb6a..7b08c46 100644
--- a/intern/ghost/intern/GHOST_SystemCocoa.mm
+++ b/intern/ghost/intern/GHOST_SystemCocoa.mm
@@ -562,7 +562,8 @@ GHOST_IWindow* GHOST_SystemCocoa::createWindow(
//Ensures window top left is inside this available rect
left = left > contentRect.origin.x ? left : contentRect.origin.x;
- bottom = bottom > contentRect.origin.y ? bottom : contentRect.origin.y;
+ // Add contentRect.origin.y to respect docksize
+ bottom = bottom > contentRect.origin.y ? bottom + contentRect.origin.y : contentRect.origin.y;
window = new GHOST_WindowCocoa (this, title, left, bottom, width, height, state, type, stereoVisual, numOfAASamples);
More information about the Bf-blender-cvs
mailing list