D8748: [libinput] Find screen for touch screen devices and calibrate accordingly
Martin Flöser
noreply at phabricator.kde.org
Fri Nov 10 17:14:19 UTC 2017
graesslin created this revision.
graesslin added reviewers: KWin, Plasma.
Restricted Application added a project: KWin.
Restricted Application added subscribers: kwin, plasma-devel.
REVISION 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.
REPOSITORY
R108 KWin
BRANCH
libinput-calibrate-touchscreen2
REVISION DETAIL
https://phabricator.kde.org/D8748
AFFECTED FILES
autotests/libinput/device_test.cpp
autotests/libinput/mock_libinput.cpp
autotests/libinput/mock_libinput.h
input.cpp
libinput/connection.cpp
libinput/connection.h
libinput/device.cpp
libinput/device.h
plugins/platforms/drm/drm_output.h
plugins/platforms/drm/screens_drm.cpp
plugins/platforms/drm/screens_drm.h
screens.cpp
screens.h
To: graesslin, #kwin, #plasma
Cc: plasma-devel, kwin, bwowk, ZrenBot, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20171110/f9e1b524/attachment.html>
More information about the Plasma-devel
mailing list