[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30155] trunk/blender/intern/ghost/intern/ GHOST_SystemCocoa.mm: Fixed bug [#22555] OSX/Cocoa: Suppress delayed mouse position changed event after setting it
Damien Plisson
damien.plisson at yahoo.fr
Fri Jul 9 20:54:44 CEST 2010
Revision: 30155
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30155
Author: damien78
Date: 2010-07-09 20:54:44 +0200 (Fri, 09 Jul 2010)
Log Message:
-----------
Fixed bug [#22555] OSX/Cocoa: Suppress delayed mouse position changed event after setting it
Modified Paths:
--------------
trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm
Modified: trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm 2010-07-09 17:45:21 UTC (rev 30154)
+++ trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm 2010-07-09 18:54:44 UTC (rev 30155)
@@ -813,7 +813,11 @@
GHOST_WindowCocoa* window = (GHOST_WindowCocoa*)m_windowManager->getActiveWindow();
if (!window) return GHOST_kFailure;
+ //Cursor and mouse dissociation placed here not to interfere with continuous grab
+ // (in cont. grab setMouseCursorPosition is directly called)
+ CGAssociateMouseAndMouseCursorPosition(false);
setMouseCursorPosition(x, y);
+ CGAssociateMouseAndMouseCursorPosition(true);
//Force mouse move event (not pushed by Cocoa)
window->screenToClient(x, y, wx, wy);
More information about the Bf-blender-cvs
mailing list