[PULL] Various minor fixes for Cygwin/Xming

Keith Packard keithp at keithp.com
Wed Oct 14 08:18:47 PDT 2009


Excerpts from Jon TURNEY's message of Wed Oct 14 06:05:44 -0700 2009:
> Hi Keith,
> 
> Please pull these fixes into master.

This one looks wrong as miPointerSetPosition may modify x and y:

@@ -371,16 +371,16 @@ winMouseButtonsHandle (ScreenPtr pScreen,
  */
 void winEnqueueMotion(int x, int y)
 {
-  miPointerSetPosition(g_pwinPointer, &x, &y);
-
   int i, nevents;
   int valuators[2];
 
   EventListPtr events;
-  GetEventList(&events);
 
   valuators[0] = x;
   valuators[1] = y;
+
+  miPointerSetPosition(g_pwinPointer, &x, &y);
+  GetEventList(&events);
   nevents = GetPointerEvents(events, g_pwinPointer, MotionNotify, 0,
 			     POINTER_ABSOLUTE, 0, 2, valuators);
 
-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-devel/attachments/20091014/fd6b459f/attachment.pgp 


More information about the xorg-devel mailing list