libei/test
Peter Hutterer 56b82c2b8f Add DeviceRegions to replace the pointer/touch ranges
This is required for supporting synergy/barrier and similar clients.
Replacing the touch and pointer range we now have server-defined
rectangular regions that specify the active zones for this device.

For example, a dual-monitor EIS server would create two touch devices
with one region each for the respective monitors - libei-generated
touches would thus fall on the right area of the monitor. Or just one
device with one region if the second screen should be inaccessible.

A relative device may have multiple regions since it can reach all
screens in the layout.

This leaks the screen layout to libei but that is necessary for the
functionality to work. A libei client may need to control devices
through absolute coordinates and it needs to know where screen
transitions from one to the next screen happen:

  +-----------++----------------+
  |           ||                |
  |          B||Q               |
  |           |+----------------+
  |           |
  |          A|P
  +-----------+

In the above example, position P is unreachable and a client that
controls input on both screens must know that it cannot transition from
A to P but it can transition from B to Q.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-07-23 15:06:01 +10:00
..
buildtest.c Include stddef.h for size_t 2020-08-24 13:01:37 +10:00
buildtest.cc Add C++ header guards 2020-09-29 17:30:49 +10:00
eierpecken.c Add DeviceRegions to replace the pointer/touch ranges 2021-07-23 15:06:01 +10:00
eierpecken.h Add DeviceRegions to replace the pointer/touch ranges 2021-07-23 15:06:01 +10:00
test-ei-device.c Add DeviceRegions to replace the pointer/touch ranges 2021-07-23 15:06:01 +10:00
test-ei-seat.c test: split the ei tests up into different files 2021-07-21 12:01:05 +10:00
test-ei.c test: split the ei tests up into different files 2021-07-21 12:01:05 +10:00
test-eis.c Add support for seat unbinding 2021-07-21 11:20:18 +10:00
test-main.c Change to use server-created devices 2021-07-21 11:02:54 +10:00
unit-tests.c Factor out munit test handling into a set of helpers 2020-08-20 14:44:38 +10:00