<table><tr><td style="">graesslin created this revision.<br />graesslin added reviewers: KWin, Plasma.<br />Restricted Application added a project: KWin.<br />Restricted Application added subscribers: kwin, plasma-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8748" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This change finds the screen for a touch screen device based on:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">number available screens</li>
<li class="remarkup-list-item">output name defined on the touch screen device</li>
<li class="remarkup-list-item">internal screen</li>
<li class="remarkup-list-item">and physical size</li>
</ul>
<p>The id of the screen is stored in the Device allowing to adjust the<br />
touch points accordingly. This means instead of transferring to the<br />
combined display size the touch points are transferred into the output<br />
space and the position of the output is added. Thus in a multi screen<br />
system the touch points are properly mapped to the output.</p>
<p>Furthermore the screen orientation is passed to the Device and a<br />
calibration matrix is set accordingly. Thus a transformed screen has the<br />
touch screen transformed accordingly.</p>
<p>Please note that this only affects libinput on Wayland and not on X11!<br />
The x11 standalone platform needs to gain similar code.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>libinput-calibrate-touchscreen2</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8748" rel="noreferrer">https://phabricator.kde.org/D8748</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/libinput/device_test.cpp<br />
autotests/libinput/mock_libinput.cpp<br />
autotests/libinput/mock_libinput.h<br />
input.cpp<br />
libinput/connection.cpp<br />
libinput/connection.h<br />
libinput/device.cpp<br />
libinput/device.h<br />
plugins/platforms/drm/drm_output.h<br />
plugins/platforms/drm/screens_drm.cpp<br />
plugins/platforms/drm/screens_drm.h<br />
screens.cpp<br />
screens.h</div></div></div><br /><div><strong>To: </strong>graesslin, KWin, Plasma<br /><strong>Cc: </strong>plasma-devel, kwin, bwowk, ZrenBot, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart<br /></div>