<table><tr><td style="">graesslin created this revision.<br />graesslin added reviewers: KWin, Plasma on Wayland.<br />Restricted Application added subscribers: kwin, plasma-devel.<br />Restricted Application added projects: Plasma on Wayland, KWin.
</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/D2979" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>If KWin interacts with Libinput the RelativePointerManager interface<br />
gets created on the Wayland server. The ForwardInputEventFilter does<br />
forward the relative motion events in addition to the normal motion<br />
events.</p>

<p>In order to properly support the relative motion events as they are<br />
expected by the Wayland protocol the handling of pointer motion events<br />
got slightly adjusted:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Libinput Pointer event extended by the additional data points</li>
<li class="remarkup-list-item">Libinput Pointer event carries the delta as a QSizeF instead of</li>
</ul>

<p>QPointF</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">PointerInputRedirection adjusted to take a pointer motion event with</li>
</ul>

<p>more arguments</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Custom QMouseEvent subclass adjusted to carry the additional members</li>
</ul>

<p>The DebugConsole is adjusted to show the relative motion events in<br />
addition to the global position.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Verified the manager object is created and verified the<br />
events in DebugConsole. Unfortunately not aware of any test application.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKWIN KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>relative-pointer-events</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2979" rel="noreferrer">https://phabricator.kde.org/D2979</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/libinput/input_event_test.cpp<br />
autotests/libinput/mock_libinput.cpp<br />
autotests/libinput/pointer_event_test.cpp<br />
debug_console.cpp<br />
input.cpp<br />
input_event.cpp<br />
input_event.h<br />
libinput/connection.cpp<br />
libinput/connection.h<br />
libinput/events.cpp<br />
libinput/events.h<br />
pointer_input.cpp<br />
pointer_input.h<br />
tests/libinputtest.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>graesslin, KWin, Plasma on Wayland<br /><strong>Cc: </strong>plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas<br /></div>