Changeset View
Changeset View
Standalone View
Standalone View
input.cpp
Show First 20 Lines • Show All 1842 Lines • ▼ Show 20 Line(s) | 1842 | if (conn) { | |||
---|---|---|---|---|---|
1843 | 1843 | | |||
1844 | if (waylandServer()) { | 1844 | if (waylandServer()) { | ||
1845 | // create relative pointer manager | 1845 | // create relative pointer manager | ||
1846 | waylandServer()->display()->createRelativePointerManager(KWayland::Server::RelativePointerInterfaceVersion::UnstableV1, waylandServer()->display())->create(); | 1846 | waylandServer()->display()->createRelativePointerManager(KWayland::Server::RelativePointerInterfaceVersion::UnstableV1, waylandServer()->display())->create(); | ||
1847 | } | 1847 | } | ||
1848 | 1848 | | |||
1849 | conn->setInputConfig(kwinApp()->inputConfig()); | 1849 | conn->setInputConfig(kwinApp()->inputConfig()); | ||
1850 | conn->updateLEDs(m_keyboard->xkb()->leds()); | 1850 | conn->updateLEDs(m_keyboard->xkb()->leds()); | ||
1851 | waylandServer()->updateKeyState(m_keyboard->xkb()->leds()); | ||||
1852 | connect(m_keyboard, &KeyboardInputRedirection::ledsChanged, waylandServer(), &WaylandServer::updateKeyState); | ||||
1851 | connect(m_keyboard, &KeyboardInputRedirection::ledsChanged, conn, &LibInput::Connection::updateLEDs); | 1853 | connect(m_keyboard, &KeyboardInputRedirection::ledsChanged, conn, &LibInput::Connection::updateLEDs); | ||
1852 | connect(conn, &LibInput::Connection::eventsRead, this, | 1854 | connect(conn, &LibInput::Connection::eventsRead, this, | ||
1853 | [this] { | 1855 | [this] { | ||
1854 | m_libInput->processEvents(); | 1856 | m_libInput->processEvents(); | ||
1855 | }, Qt::QueuedConnection | 1857 | }, Qt::QueuedConnection | ||
1856 | ); | 1858 | ); | ||
1857 | conn->setup(); | 1859 | conn->setup(); | ||
1858 | connect(conn, &LibInput::Connection::pointerButtonChanged, m_pointer, &PointerInputRedirection::processButton); | 1860 | connect(conn, &LibInput::Connection::pointerButtonChanged, m_pointer, &PointerInputRedirection::processButton); | ||
▲ Show 20 Lines • Show All 531 Lines • Show Last 20 Lines |