Skip to content
Snippets Groups Projects
  1. Jul 09, 2018
    • Daniel Stone's avatar
      helpers: Move static_assert definition to shared · 11f91bbd
      Daniel Stone authored
      
      Collect the fallback definitions of static_assert() from desktop-shell
      and the test shell, and move them to helpers.h. This allows code
      throughout the tree to use static_assert() for build-time assertions,
      where it is supported by the compiler.
      
      As GCC goes out of its way to only add static_assert() when C11 has been
      explicitly requested - which we don't do - make sure to use the more
      widely available _Static_assert() if that is provided.
      
      This will be used in future patches to ensure two array lengths don't go
      out of sync.
      
      Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
      Reviewed-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      11f91bbd
  2. Jun 20, 2018
  3. May 30, 2018
    • Pekka Paalanen's avatar
      libweston: notify_touch API to use weston_touch_device · bcbce330
      Pekka Paalanen authored
      
      Relay touch input events into libweston core through the
      weston_touch_device, so that the core can tell which individual physical
      device they come from.
      
      This is necessary for supporting touchscreen calibration, where one
      needs to process a single physical device at a time instead of the
      aggregate of all touch devices on the weston_seat.
      
      Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      v1 Tested-by: default avatarMatt Hoosier <matt.hoosier@gmail.com>
      Reviewed-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      bcbce330
    • Louis-Francis Ratté-Boulianne's avatar
      input: introduce weston_touch_device · 6ef59c98
      Louis-Francis Ratté-Boulianne authored and Pekka Paalanen's avatar Pekka Paalanen committed
      
      Introduce weston_touch_device for libweston core to track individual
      touchscreen input devices. A weston_seat/weston_touch may be an
      aggregation of several physical touchscreen input devices. Separating
      the physical devices will be required for implementing touchscreen
      calibration. One can only calibrate one device at a time, and we want to
      make sure to handle the right one.
      
      Both backends that support touch devices are updated to create
      weston_touch_devices. Wayland-backend provides touch devices that cannot
      be calibrated, because we have no access to raw touch coordinates from
      the device - calibration is the responsibility of the parent display
      server. Libinput backend provides touch devices that can be calibrated,
      hence implementing the set and get calibration hooks.
      
      Backends need to maintain an output pointer in any case, so we have a
      get_output() hook instead of having to maintain an identical field in
      weston_touch_device. The same justification applies to
      get_calibration_head_name.
      
      Also update the test plugin to manage weston_touch_device objects.
      
      Co-developed by Louis-Francis and Pekka.
      
      v2:
      - Consistently use 'cal' instead of 'calb' or 'matrix'.
      - change devpath into syspath
      - update copyrights
      
      Signed-off-by: default avatarLouis-Francis Ratté-Boulianne <lfrb@collabora.com>
      Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      v1 Tested-by: default avatarMatt Hoosier <matt.hoosier@gmail.com>
      Reviewed-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      6ef59c98
  4. Apr 20, 2018
  5. Apr 10, 2018
  6. Feb 20, 2018
  7. Feb 15, 2018
  8. Feb 14, 2018
  9. Feb 09, 2018
  10. Feb 07, 2018
  11. Feb 01, 2018
  12. Dec 18, 2017
  13. Dec 12, 2017
  14. Dec 04, 2017
  15. Dec 01, 2017
  16. Nov 27, 2017
Loading