Changeset View
Changeset View
Standalone View
Standalone View
input.cpp
Show First 20 Lines • Show All 1667 Lines • ▼ Show 20 Line(s) | 1660 | [this] (FakeInputDevice *device) { | |||
---|---|---|---|---|---|
1668 | ); | 1668 | ); | ||
1669 | connect(device, &FakeInputDevice::pointerMotionRequested, this, | 1669 | connect(device, &FakeInputDevice::pointerMotionRequested, this, | ||
1670 | [this] (const QSizeF &delta) { | 1670 | [this] (const QSizeF &delta) { | ||
1671 | // TODO: Fix time | 1671 | // TODO: Fix time | ||
1672 | m_pointer->processMotion(globalPointer() + QPointF(delta.width(), delta.height()), 0); | 1672 | m_pointer->processMotion(globalPointer() + QPointF(delta.width(), delta.height()), 0); | ||
1673 | waylandServer()->simulateUserActivity(); | 1673 | waylandServer()->simulateUserActivity(); | ||
1674 | } | 1674 | } | ||
1675 | ); | 1675 | ); | ||
1676 | connect(device, &FakeInputDevice::pointerMotionAbsoluteRequested, this, | ||||
1677 | [this] (const QSizeF &pos) { | ||||
1678 | // TODO: Fix time | ||||
1679 | m_pointer->processMotion(QPointF(pos.width(), pos.height()), 0); | ||||
1680 | waylandServer()->simulateUserActivity(); | ||||
1681 | } | ||||
1682 | ); | ||||
1676 | connect(device, &FakeInputDevice::pointerButtonPressRequested, this, | 1683 | connect(device, &FakeInputDevice::pointerButtonPressRequested, this, | ||
1677 | [this] (quint32 button) { | 1684 | [this] (quint32 button) { | ||
1678 | // TODO: Fix time | 1685 | // TODO: Fix time | ||
1679 | m_pointer->processButton(button, InputRedirection::PointerButtonPressed, 0); | 1686 | m_pointer->processButton(button, InputRedirection::PointerButtonPressed, 0); | ||
1680 | waylandServer()->simulateUserActivity(); | 1687 | waylandServer()->simulateUserActivity(); | ||
1681 | } | 1688 | } | ||
1682 | ); | 1689 | ); | ||
1683 | connect(device, &FakeInputDevice::pointerButtonReleaseRequested, this, | 1690 | connect(device, &FakeInputDevice::pointerButtonReleaseRequested, this, | ||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 1739 | [this] () { | |||
1733 | m_touch->cancel(); | 1740 | m_touch->cancel(); | ||
1734 | } | 1741 | } | ||
1735 | ); | 1742 | ); | ||
1736 | connect(device, &FakeInputDevice::touchFrameRequested, this, | 1743 | connect(device, &FakeInputDevice::touchFrameRequested, this, | ||
1737 | [this] () { | 1744 | [this] () { | ||
1738 | m_touch->frame(); | 1745 | m_touch->frame(); | ||
1739 | } | 1746 | } | ||
1740 | ); | 1747 | ); | ||
1741 | } | 1748 | } | ||
graesslin: From security point of view I'm strictly against fake key events. | |||||
1742 | ); | 1749 | ); | ||
1743 | connect(workspace(), &Workspace::configChanged, this, &InputRedirection::reconfigure); | 1750 | connect(workspace(), &Workspace::configChanged, this, &InputRedirection::reconfigure); | ||
1744 | 1751 | | |||
1745 | m_keyboard->init(); | 1752 | m_keyboard->init(); | ||
1746 | m_pointer->init(); | 1753 | m_pointer->init(); | ||
1747 | m_touch->init(); | 1754 | m_touch->init(); | ||
1748 | } | 1755 | } | ||
1749 | setupInputFilters(); | 1756 | setupInputFilters(); | ||
▲ Show 20 Lines • Show All 610 Lines • Show Last 20 Lines |
From security point of view I'm strictly against fake key events.