From 71f4b404c0c5b4e8f41d779687e026efd580a988 Mon Sep 17 00:00:00 2001 From: Colin Harrison Date: Wed, 4 Nov 2009 15:16:03 +0000 Subject: [PATCH] Xming: Add mouse motion events with flag POINTER_SCREEN in winEnqueueMotion() Add mouse motion events with flag POINTER_SCREEN in winEnqueueMotion(), as they are in screen coordindates and may need to be scaled to the axis range appropriately Signed-off-by: Jon TURNEY (cherry picked from commit 019a601de6a8ae083852c2d384c814dcc7aeeb72) --- hw/xwin/winmouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwin/winmouse.c b/hw/xwin/winmouse.c index b537d3213..3d25aeb2c 100644 --- a/hw/xwin/winmouse.c +++ b/hw/xwin/winmouse.c @@ -382,7 +382,7 @@ void winEnqueueMotion(int x, int y) valuators[0] = x; valuators[1] = y; nevents = GetPointerEvents(events, g_pwinPointer, MotionNotify, 0, - POINTER_ABSOLUTE, 0, 2, valuators); + POINTER_ABSOLUTE | POINTER_SCREEN, 0, 2, valuators); for (i = 0; i < nevents; i++) mieqEnqueue(g_pwinPointer, events[i].event);