diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2014-09-24 22:55:38 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2014-09-24 22:55:48 +0400 |
commit | faaf0c719f3310759bf5f2c9be76f6788a923364 (patch) | |
tree | 40b5196fff1a0e4305fb6773dff831a9fcea5a99 | |
parent | e18a74849c2dda52b25e0ca35127f511999a471c (diff) |
OSX: ensure windows are restored at their saved position,
meaning here we need to take docksize into account
-rw-r--r-- | intern/ghost/intern/GHOST_SystemCocoa.mm | 3 |
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); |