From b4a8977b3ab69c97ee192670407bf607cf2600e3 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Wed, 9 Jan 2019 07:45:48 +0100 Subject: [PATCH] Add support for fake pointer move with absolute coordinates Summary: This is needed for remote desktop support. It also depends on D18114. Reviewers: davidedmundson Reviewed By: davidedmundson Subscribers: graesslin, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D18115 --- input.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/input.cpp b/input.cpp index 09848b31fe..4faa7a5359 100644 --- a/input.cpp +++ b/input.cpp @@ -1673,6 +1673,13 @@ void InputRedirection::setupWorkspace() waylandServer()->simulateUserActivity(); } ); + connect(device, &FakeInputDevice::pointerMotionAbsoluteRequested, this, + [this] (const QPointF &pos) { + // TODO: Fix time + m_pointer->processMotion(pos, 0); + waylandServer()->simulateUserActivity(); + } + ); connect(device, &FakeInputDevice::pointerButtonPressRequested, this, [this] (quint32 button) { // TODO: Fix time