Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorJens Verwiebe <info@jensverwiebe.de>2014-09-24 22:55:38 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-10-03 17:09:24 +0400
commit40c8068f204391c21e8328b57f89348185cd3249 (patch)
treee1d87ac015b8836636bfa4ed8671d0267e4b93d4 /intern
parentbf1946860b8663c4163f94b70d91385240bbe9d5 (diff)
OSX: ensure windows are restored at their saved position,
meaning here we need to take docksize into account
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_SystemCocoa.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm
index 6fefb6a1de6..7b08c46b65d 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);