devdraw: fix mouse(3) moveto on OS X

R=rsc
CC=codebot
http://codereview.appspot.com/224104
This commit is contained in:
Eoghan Sherry 2010-03-03 18:11:36 -08:00 committed by Russ Cox
parent 35625b3f1a
commit d94cc62a01

View file

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