Commit 7b97c7b3 authored by Dorian Stoll's avatar Dorian Stoll

wayland/tablet-tool: Fix stylus input with HiDPI scaling

After commit 75cffd0e ("shaped-texture: Implement ClutterContent"), the
input to the meta_wayland_tablet_tool_get_relative_coordinates function
is already scaled correctly. By scaling it again, all stylus events are
getting mapped to the screen incorrectly (for anything != 100% scaling).

See also: d3f30d9e

!830
parent ca318c15
Pipeline #121408 passed with stages
in 5 minutes and 46 seconds
......@@ -662,8 +662,8 @@ meta_wayland_tablet_tool_get_relative_coordinates (MetaWaylandTabletTool *tool,
clutter_event_get_coords (event, &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;
*sx = wl_fixed_from_double (xf);
*sy = wl_fixed_from_double (yf);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment