mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-04 22:36:10 +00:00
dix: export subpixel precision in XI2 events for root/event coordinates.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
bae070914f
commit
00bc043fa0
3 changed files with 9 additions and 5 deletions
|
|
@ -44,6 +44,7 @@
|
|||
#include "dixevents.h"
|
||||
#include "mipointer.h"
|
||||
#include "events.h"
|
||||
#include "eventconvert.h"
|
||||
|
||||
#include <X11/extensions/XKBproto.h>
|
||||
#include "xkbsrv.h"
|
||||
|
|
@ -1070,9 +1071,10 @@ GetPointerEvents(EventList *events, DeviceIntPtr pDev, int type, int buttons,
|
|||
event->detail.button = buttons;
|
||||
}
|
||||
|
||||
/* XXX: this should be 16.16 fixed point */
|
||||
event->root_x = cx; /* root_x/y always in screen coords */
|
||||
event->root_y = cy;
|
||||
event->root_x_frac = pDev->last.remainder[0];
|
||||
event->root_y_frac = pDev->last.remainder[1];
|
||||
|
||||
set_valuators(pDev, event, first_valuator, num_valuators, valuators);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue