diff options
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowCocoa.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm index fd68b6200ee..999ec0de9c1 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.mm +++ b/intern/ghost/intern/GHOST_WindowCocoa.mm @@ -873,7 +873,10 @@ GHOST_TSuccess GHOST_WindowCocoa::setWindowCursorGrab(bool grab, bool warp, bool setCursorWarpAccum(-x_new, -y_new); } else { - m_systemCocoa->setCursorPosition(m_cursorWarpInitPos[0], m_cursorWarpInitPos[1]); + GHOST_TInt32 x_new, y_new; + //get/set cursor position works in screen coordinates + clientToScreen(m_cursorWarpInitPos[0], m_cursorWarpInitPos[1], x_new, y_new); + m_systemCocoa->setCursorPosition(x_new, y_new); setCursorWarpAccum(0, 0); } |