tdevdraw: fix mouse(3) moveto on OS X - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d94cc62a01598da18ec1e6a25aec395e98000904
 (DIR) parent 35625b3f1a128fb03a457d8e511e2c74addf5660
 (HTM) Author: Eoghan Sherry <ejsherry@gmail.com>
       Date:   Wed,  3 Mar 2010 18:11:36 -0800
       
       devdraw: fix mouse(3) moveto on OS X
       
       R=rsc
       CC=codebot
       http://codereview.appspot.com/224104
       
       Diffstat:
         M src/cmd/devdraw/osx-screen-carbon.m |       8 +++++++-
       
       1 file changed, 7 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/cmd/devdraw/osx-screen-carbon.m b/src/cmd/devdraw/osx-screen-carbon.m
       t@@ -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();
        }