Jason Gerecke a4cef8586c backends/native: Interpret tablet padding as being input-centric
It is possible to interpret the ammount of padding provided to the
*_set_tablet_area functions in two different and incompatible ways. The X11
backend effectively treats them as being input-centric (i.e., the padding
defines the size of the "dead zone" on the tablet) while the native backend
has an output-centric viewpoint (i.e., the padding defines the size of the
"dead zone" on the display) viewpoint. This difference in opinion causes the
cursor offset to change when switching between Xorg and a Wayland sessions.

The calibration utility within g-c-c does its calculations with an input-
centric viewpoint, so this patch modifies the native backend to work
correctly with these values. To change viewpoints, we can simply invert
the scale and negate the offset. It should be noted that this function
also forgot to apply scaling to the offsets (as required by the matrix
transform done by libinput) which would have further compounded the
cursor offset issue under Wayland.

https://bugzilla.gnome.org/show_bug.cgi?id=784009
2017-06-20 23:42:38 +02:00
2017-05-28 11:21:42 +10:00
2017-05-22 17:27:11 +02:00
2015-07-06 00:52:18 -07:00
2017-06-19 17:37:23 +02:00
2017-05-11 13:45:44 +02:00
2017-05-28 11:21:42 +10:00
2016-04-27 20:37:47 +02:00
2014-07-31 17:50:28 +02:00
2017-05-24 21:04:07 +02:00
Description
91 MiB
Languages
C 98.9%
Meson 0.7%
Python 0.3%