aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEoghan Sherry <ejsherry@gmail.com>2010-03-03 18:11:36 -0800
committerRuss Cox <rsc@swtch.com>2010-03-03 18:11:36 -0800
commitd94cc62a01598da18ec1e6a25aec395e98000904 (patch)
treea8330892ccbe4f9397eee65d5d09f0f3001141e0
parent35625b3f1a128fb03a457d8e511e2c74addf5660 (diff)
downloadplan9port-d94cc62a01598da18ec1e6a25aec395e98000904.tar.gz
plan9port-d94cc62a01598da18ec1e6a25aec395e98000904.tar.bz2
plan9port-d94cc62a01598da18ec1e6a25aec395e98000904.zip
devdraw: fix mouse(3) moveto on OS X
R=rsc CC=codebot http://codereview.appspot.com/224104
-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();
}