dix: convert window coordinates to FP1616 before calculating event_x/y
root_x/y are already in FP1616 at this point. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
10b5e98101
commit
b3463fd6a8
|
@ -2240,8 +2240,8 @@ FixUpEventFromWindow(
|
|||
event->event = pWin->drawable.id;
|
||||
if (pSprite->hot.pScreen == pWin->drawable.pScreen)
|
||||
{
|
||||
event->event_x = FP1616(event->root_x - pWin->drawable.x, 0);
|
||||
event->event_y = FP1616(event->root_y - pWin->drawable.y, 0);
|
||||
event->event_x = event->root_x - FP1616(pWin->drawable.x, 0);
|
||||
event->event_y = event->root_y - FP1616(pWin->drawable.y, 0);
|
||||
event->child = child;
|
||||
} else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user