mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-17 09:00:33 +01:00
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>
(cherry picked from commit 019a601de6)
This commit is contained in:
parent
f0325c2f60
commit
71f4b404c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue