devdraw: fix mouse(3) moveto on OS X
R=rsc CC=codebot http://codereview.appspot.com/224104
This commit is contained in:
parent
35625b3f1a
commit
d94cc62a01
1 changed files with 7 additions and 1 deletions
|
|
@ -423,6 +423,12 @@ _screeninit(void)
|
||||||
if(multitouch)
|
if(multitouch)
|
||||||
InitMultiTouch();
|
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();
|
InitCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue