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 https://gitlab.gnome.org/GNOME/mutter/merge_requests/830
This commit is contained in:
parent
ca318c1520
commit
7b97c7b35e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user