commit d94cc62a01598da18ec1e6a25aec395e98000904 from: Eoghan Sherry via: Russ Cox date: Thu Mar 04 02:11:36 2010 UTC devdraw: fix mouse(3) moveto on OS X R=rsc CC=codebot http://codereview.appspot.com/224104 commit - 35625b3f1a128fb03a457d8e511e2c74addf5660 commit + d94cc62a01598da18ec1e6a25aec395e98000904 blob - 16b100ab16451b56b2dec94e16165c30ddc1a769 blob + d4720be7708a2322fafdc6d439f81909437647a3 --- src/cmd/devdraw/osx-screen-carbon.m +++ src/cmd/devdraw/osx-screen-carbon.m @@ -422,7 +422,13 @@ _screeninit(void) if(multitouch) InitMultiTouch(); - + + // CoreGraphics pins mouse events to the destination point of a + // CGWarpMouseCursorPosition (see setmouse) for an interval of time + // following the move. Disable this by setting the interval to zero + // seconds. + CGSetLocalEventsSuppressionInterval(0.0); + InitCursor(); }