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
This commit is contained in:
parent
d167935157
commit
b4a8977b3a
1 changed files with 7 additions and 0 deletions
|
@ -1673,6 +1673,13 @@ void InputRedirection::setupWorkspace()
|
||||||
waylandServer()->simulateUserActivity();
|
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,
|
connect(device, &FakeInputDevice::pointerButtonPressRequested, this,
|
||||||
[this] (quint32 button) {
|
[this] (quint32 button) {
|
||||||
// TODO: Fix time
|
// TODO: Fix time
|
||||||
|
|
Loading…
Reference in a new issue