summaryrefslogtreecommitdiff
path: root/src/data-device.c
diff options
context:
space:
mode:
authorGiulio Camuffo <giuliocamuffo@gmail.com>2015-07-08 11:55:28 +0300
committerDaniel Stone <daniels@collabora.com>2015-08-06 16:21:01 +0100
commit61ed7b6bf06895b6e0ac8e3c5fff12e491449fd9 (patch)
treed8f6e0861a0ca847edd51452d6f493821eddc729 /src/data-device.c
parent7239d74bb3d43c46c958079e7c8f759371599455 (diff)
downloadweston-61ed7b6bf06895b6e0ac8e3c5fff12e491449fd9.tar.gz
input: pass the global touch coordinates to the touch grab
This makes it consistent with the pointer grab, which also gets global coordinates and not surface relative ones, and allows to easily filter out gestures based on compositor global hotspots. Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'src/data-device.c')
-rw-r--r--src/data-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data-device.c b/src/data-device.c
index 9825bda6..89ffce49 100644
--- a/src/data-device.c
+++ b/src/data-device.c
@@ -480,7 +480,7 @@ drag_grab_touch_focus(struct weston_touch_drag *drag)
static void
drag_grab_touch_motion(struct weston_touch_grab *grab, uint32_t time,
- int touch_id, wl_fixed_t sx, wl_fixed_t sy)
+ int touch_id, wl_fixed_t x, wl_fixed_t y)
{
struct weston_touch_drag *touch_drag =
container_of(grab, struct weston_touch_drag, grab);