1
0
Fork 0
mutter-performance-source/src/backends
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
..
native backends/native: Interpret tablet padding as being input-centric 2017-06-20 23:42:38 +02:00
x11 backends/x11: Handle left-handed mode on pen/eraser devices correctly 2017-06-20 22:02:04 +02:00
edid-parse.c Remove trailing whitespace 2014-05-02 09:34:48 -04:00
edid.h edid: Remove unused declarations 2014-09-12 11:55:08 -06:00
meta-backend-private.h backend: Move settings into a new MetaSettings object 2017-05-26 14:31:48 +08:00
meta-backend.c backend: Move settings into a new MetaSettings object 2017-05-26 14:31:48 +08:00
meta-barrier-private.h Move out generic math parts out of the native barrier implementation 2016-02-16 19:02:48 +08:00
meta-barrier.c Move out generic math parts out of the native barrier implementation 2016-02-16 19:02:48 +08:00
meta-cursor-renderer.c cursor-renderer: Add a cursor painted signal 2016-08-31 20:10:14 +02:00
meta-cursor-renderer.h cursor-renderer: Add a cursor painted signal 2016-08-31 20:10:14 +02:00
meta-cursor-tracker-private.h cursor-tracker: Don't cache a private pointer to the cursor renderer 2017-01-25 16:28:51 +08:00
meta-cursor-tracker.c Move cursor tracker ownership to the backend 2017-01-25 16:28:51 +08:00
meta-cursor.c Use correct cogl object types 2016-07-20 14:23:48 +08:00
meta-cursor.h Support scaling of cursor sprites given what output they are on 2015-09-13 21:26:22 +08:00
meta-display-config-shared.h Remove trailing whitespace 2014-05-02 09:34:48 -04:00
meta-dnd-private.h dnd: Implement DnD handling code in Wayland 2017-03-07 08:28:36 +08:00
meta-egl-ext.h egl: Add EGL_RESOURCE_BUSY_EXT error 2017-03-04 18:34:17 +08:00
meta-egl.c egl: Add EGL_RESOURCE_BUSY_EXT error 2017-03-04 18:34:17 +08:00
meta-egl.h egl: Pass EGL errors via custom error domain 2017-03-04 18:34:17 +08:00
meta-idle-monitor-dbus.c MetaIdleMonitorDBus: unref the objects after exporting them 2014-05-07 19:04:54 +02:00
meta-idle-monitor-dbus.h Start molding out a new src/backends/ dir 2014-03-31 22:11:00 -04:00
meta-idle-monitor-private.h Remove trailing whitespace 2014-05-02 09:34:48 -04:00
meta-idle-monitor.c backends: Make MetaBackend available to introspection 2014-08-07 11:31:59 +02:00
meta-input-settings-private.h Implements disable-while-typing in mutter. 2017-05-24 11:56:54 +08:00
meta-input-settings.c backends: Fix output cycling in non display-attached tablets 2017-06-20 22:02:04 +02:00
meta-logical-monitor.c monitor-manager/xrandr: Allow configuring scales on X11 too 2017-05-26 14:31:48 +08:00
meta-logical-monitor.h monitor-manager/xrandr: Allow configuring scales on X11 too 2017-05-26 14:31:48 +08:00
meta-monitor-config-manager.c monitor-manager/xrandr: Allow configuring scales on X11 too 2017-05-26 14:31:48 +08:00
meta-monitor-config-manager.h monitor-manager/xrandr: Allow configuring scales on X11 too 2017-05-26 14:31:48 +08:00
meta-monitor-config-store.c monitor-manager/xrandr: Allow configuring scales on X11 too 2017-05-26 14:31:48 +08:00
meta-monitor-config-store.h Add support for scaled logical monitor framebuffers 2017-04-07 22:30:48 +08:00
meta-monitor-config.c legacy-monitor-config: Let the manager listen on lid closed changes 2017-04-07 22:30:48 +08:00
meta-monitor-config.h legacy-monitor-config: Let the manager listen on lid closed changes 2017-04-07 22:30:48 +08:00
meta-monitor-manager-dummy.c monitor-manager/xrandr: Allow configuring scales on X11 too 2017-05-26 14:31:48 +08:00
meta-monitor-manager-dummy.h monitor-manager: Expose MetaMonitorManager to introspection 2015-01-30 13:13:49 -05:00
meta-monitor-manager-private.h monitor-manager/xrandr: Allow configuring scales on X11 too 2017-05-26 14:31:48 +08:00
meta-monitor-manager.c monitor-manager: Fix crash when UPower is not available 2017-05-31 16:11:24 +02:00
meta-monitor.c monitor: invert logic for 4k TV scaling 2017-06-07 14:03:03 +02:00
meta-monitor.h monitor: Don't get the monitor manager from the backend 2017-05-26 14:32:43 +08:00
meta-pointer-constraint.c Implement support for the wp_pointer_constraints protocol 2016-02-16 19:02:48 +08:00
meta-pointer-constraint.h Implement support for the wp_pointer_constraints protocol 2016-02-16 19:02:48 +08:00
meta-renderer-view.c renderer-view: Add view transform getter 2017-04-07 22:30:49 +08:00
meta-renderer-view.h renderer-view: Add view transform getter 2017-04-07 22:30:49 +08:00
meta-renderer.c monitor-manager: Store logical monitors in a GList 2017-01-25 16:28:52 +08:00
meta-renderer.h Rename MetaMonitorInfo MetaLogicalMonitor 2017-01-25 16:28:51 +08:00
meta-settings-private.h monitor-manager/kms: Move global ui scaling setting to MetaSettings 2017-05-26 14:31:48 +08:00
meta-settings.c monitor-manager/kms: Move global ui scaling setting to MetaSettings 2017-05-26 14:31:48 +08:00
meta-stage.c Introduce regional stage rendering 2016-07-20 14:23:48 +08:00
meta-stage.h Introduce regional stage rendering 2016-07-20 14:23:48 +08:00