Update the MD's position when a touch event is received
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6a6c3afe71
commit
90b177e5cb
|
@ -1994,6 +1994,14 @@ GetTouchEvents(InternalEvent *events, DeviceIntPtr dev, uint32_t ddx_touchid,
|
|||
if (emulate_pointer)
|
||||
storeLastValuators(dev, &mask, 0, 1, devx, devy);
|
||||
|
||||
/* Update the MD's co-ordinates, which are always in desktop space. */
|
||||
if (emulate_pointer && !IsMaster(dev) && !IsFloating(dev)) {
|
||||
DeviceIntPtr master = GetMaster(dev, MASTER_POINTER);
|
||||
|
||||
master->last.valuators[0] = screenx;
|
||||
master->last.valuators[1] = screeny;
|
||||
}
|
||||
|
||||
event->root = scr->root->drawable.id;
|
||||
|
||||
event_set_root_coordinates(event, screenx, screeny);
|
||||
|
|
Loading…
Reference in New Issue
Block a user