Skip to content
Snippets Groups Projects

Fix handling of relative mapping and keep-aspect on display-attached tablets

  1. May 22, 2023
    • Carlos Garnacho's avatar
      backends: Do not prevent mapping/keep-aspect changes on integrated tablets · 8c080999
      Carlos Garnacho authored and Marge Bot's avatar Marge Bot committed
      We do in fact allow these combinations of configuration since the Settings
      Wacom panel revamp. We no longer need to look up Wacom device features,
      since this is allowed for all the devices that have these settings.
      
      Part-of: <!3012>
      8c080999
    • Carlos Garnacho's avatar
      backends/native: Change handling of display mapping for rel tablet tools · ee412cc4
      Carlos Garnacho authored and Marge Bot's avatar Marge Bot committed
      We avoided setting the device matrix applying to the tablet tool (used if the
      tablet is in absolute coordinates mode) if the device is configured for relative
      motion, but forgot to apply the matrix if changing the device back to absolute
      mode, this made the device seemingly forget its attached display until later
      configuration changes.
      
      In order to avoid the hassle of looking up the right display again on unrelated
      configuration changes, make the matrix be always set on the device, but only
      actually used in absolute coordinates mode. This makes the device able to
      seamlessly switch between modes and remain mapped to the right display.
      
      Part-of: <!3012>
      ee412cc4
    • Carlos Garnacho's avatar
      backends/native: Fix relative motion filtering for tablet tools · 558f3156
      Carlos Garnacho authored and Marge Bot's avatar Marge Bot committed
      This was somewhat ineffective since it was applied after figuring out
      the x/y absolute coordinates. Change the order (filter first, then
      figure out abs coords), and use coordinates from the correct device
      while at it.
      
      Part-of: <!3012>
      558f3156
Loading