Changeset View
Changeset View
Standalone View
Standalone View
input.cpp
Show First 20 Lines • Show All 1781 Lines • ▼ Show 20 Line(s) | |||||
1782 | { | 1782 | { | ||
1783 | if (waylandServer()) { | 1783 | if (waylandServer()) { | ||
1784 | using namespace KWayland::Server; | 1784 | using namespace KWayland::Server; | ||
1785 | FakeInputInterface *fakeInput = waylandServer()->display()->createFakeInput(this); | 1785 | FakeInputInterface *fakeInput = waylandServer()->display()->createFakeInput(this); | ||
1786 | fakeInput->create(); | 1786 | fakeInput->create(); | ||
1787 | connect(fakeInput, &FakeInputInterface::deviceCreated, this, | 1787 | connect(fakeInput, &FakeInputInterface::deviceCreated, this, | ||
1788 | [this] (FakeInputDevice *device) { | 1788 | [this] (FakeInputDevice *device) { | ||
1789 | connect(device, &FakeInputDevice::authenticationRequested, this, | 1789 | connect(device, &FakeInputDevice::authenticationRequested, this, | ||
1790 | [this, device] (const QString &application, const QString &reason) { | 1790 | [device] (const QString &application, const QString &reason) { | ||
1791 | Q_UNUSED(application) | 1791 | Q_UNUSED(application) | ||
1792 | Q_UNUSED(reason) | 1792 | Q_UNUSED(reason) | ||
1793 | // TODO: make secure | 1793 | // TODO: make secure | ||
1794 | device->setAuthentication(true); | 1794 | device->setAuthentication(true); | ||
1795 | } | 1795 | } | ||
1796 | ); | 1796 | ); | ||
1797 | connect(device, &FakeInputDevice::pointerMotionRequested, this, | 1797 | connect(device, &FakeInputDevice::pointerMotionRequested, this, | ||
1798 | [this] (const QSizeF &delta) { | 1798 | [this] (const QSizeF &delta) { | ||
▲ Show 20 Lines • Show All 752 Lines • Show Last 20 Lines |