OSX: ensure windows are restored at their saved position,

meaning here we need to take docksize into account
This commit is contained in:
2014-09-24 20:55:38 +02:00
parent e18a74849c
commit faaf0c719f

View File

@@ -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);