diff --git a/src/wayland/meta-wayland-tablet-tool.c b/src/wayland/meta-wayland-tablet-tool.c index a149b1e67..52c63dd96 100644 --- a/src/wayland/meta-wayland-tablet-tool.c +++ b/src/wayland/meta-wayland-tablet-tool.c @@ -657,14 +657,10 @@ meta_wayland_tablet_tool_get_relative_coordinates (MetaWaylandTabletTool *tool, wl_fixed_t *sx, wl_fixed_t *sy) { - MetaSurfaceActor *surface_actor; float xf, yf; - surface_actor = meta_wayland_surface_get_actor (surface); - clutter_event_get_coords (event, &xf, &yf); - clutter_actor_transform_stage_point (CLUTTER_ACTOR (surface_actor), - xf, yf, &xf, &yf); + meta_wayland_surface_get_relative_coordinates (surface, xf, yf, &xf, &yf); *sx = wl_fixed_from_double (xf) / surface->scale; *sy = wl_fixed_from_double (yf) / surface->scale;