summaryrefslogtreecommitdiff
path: root/hw/xwin
diff options
context:
space:
mode:
authorColin Harrison <colin.harrison@virgin.net>2009-11-04 15:16:03 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2009-11-09 20:33:33 +0000
commit019a601de6a8ae083852c2d384c814dcc7aeeb72 (patch)
treec3be50e8cb6b4190e7c08fcc942665892a9a94c4 /hw/xwin
parent7af1240b57daa4ec55512276a9fda499d923eaa0 (diff)
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 <jon.turney@dronecode.org.uk>
Diffstat (limited to 'hw/xwin')
-rw-r--r--hw/xwin/winmouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xwin/winmouse.c b/hw/xwin/winmouse.c
index 99eb6b8d2..342f20d56 100644
--- a/hw/xwin/winmouse.c
+++ b/hw/xwin/winmouse.c
@@ -381,7 +381,7 @@ void winEnqueueMotion(int x, int y)
GetEventList(&events);
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);