kwin/autotests/libinput
Martin Flöser 68698b4201 [libinput] Find screen for touch screen devices and calibrate accordingly
Summary:
This change finds the screen for a touch screen device based on:
 * number available screens
 * output name defined on the touch screen device
 * internal screen
 * and physical size

The id of the screen is stored in the Device allowing to adjust the
touch points accordingly. This means instead of transferring to the
combined display size the touch points are transferred into the output
space and the position of the output is added. Thus in a multi screen
system the touch points are properly mapped to the output.

Furthermore the screen orientation is passed to the Device and a
calibration matrix is set accordingly. Thus a transformed screen has the
touch screen transformed accordingly.

Please note that this only affects libinput on Wayland and not on X11!
The x11 standalone platform needs to gain similar code.

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D8748
2017-12-23 10:18:55 +01:00
..
CMakeLists.txt [libinput] Find screen for touch screen devices and calibrate accordingly 2017-12-23 10:18:55 +01:00
context_test.cpp [libinput] A not valid LibInput::Context should return -1 as filedescriptor 2016-06-02 16:23:23 +02:00
device_test.cpp [libinput] Find screen for touch screen devices and calibrate accordingly 2017-12-23 10:18:55 +01:00
gesture_event_test.cpp [libinput] Add support for gesture events 2016-08-08 09:15:06 +02:00
input_event_test.cpp Support for relative pointer motion events 2016-10-12 11:26:46 +02:00
key_event_test.cpp [autotest/libinput] Verify that Event::create can handle a null argument 2016-05-31 10:15:44 +02:00
mock_libinput.cpp [libinput] Find screen for touch screen devices and calibrate accordingly 2017-12-23 10:18:55 +01:00
mock_libinput.h [libinput] Find screen for touch screen devices and calibrate accordingly 2017-12-23 10:18:55 +01:00
mock_udev.cpp [autotest/libinput] Add a basic test for Context 2016-06-02 15:55:34 +02:00
mock_udev.h [autotest/libinput] Add a basic test for Context 2016-06-02 15:55:34 +02:00
pointer_event_test.cpp Support for relative pointer motion events 2016-10-12 11:26:46 +02:00
touch_event_test.cpp Fix TouchEvent::id() returning -1, fixes a crash 2017-09-19 07:11:40 +03:00