aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd/devdraw/osx-screen-carbon.m8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cmd/devdraw/osx-screen-carbon.m b/src/cmd/devdraw/osx-screen-carbon.m
index 16b100ab..d4720be7 100644
--- a/src/cmd/devdraw/osx-screen-carbon.m
+++ b/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();
}