From 91ac69382d5c6e9675c360e7f8f93aa362a191e0 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 14 Dec 2015 14:52:23 -0800 Subject: [PATCH] wayland: Fix up touch coordinates on HiDPI --- src/wayland/meta-wayland-touch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland/meta-wayland-touch.c b/src/wayland/meta-wayland-touch.c index 2892510a3..2ec9dce52 100644 --- a/src/wayland/meta-wayland-touch.c +++ b/src/wayland/meta-wayland-touch.c @@ -208,8 +208,8 @@ touch_get_relative_coordinates (MetaWaylandTouch *touch, &event_x, &event_y); } - *x = event_x; - *y = event_y; + *x = event_x / surface->scale; + *y = event_y / surface->scale; }