Changeset View
Changeset View
Standalone View
Standalone View
input.cpp
Show First 20 Lines • Show All 1862 Lines • ▼ Show 20 Line(s) | 1862 | if (conn) { | |||
---|---|---|---|---|---|
1863 | 1863 | | |||
1864 | if (waylandServer()) { | 1864 | if (waylandServer()) { | ||
1865 | // create relative pointer manager | 1865 | // create relative pointer manager | ||
1866 | waylandServer()->display()->createRelativePointerManager(KWayland::Server::RelativePointerInterfaceVersion::UnstableV1, waylandServer()->display())->create(); | 1866 | waylandServer()->display()->createRelativePointerManager(KWayland::Server::RelativePointerInterfaceVersion::UnstableV1, waylandServer()->display())->create(); | ||
1867 | } | 1867 | } | ||
1868 | 1868 | | |||
1869 | conn->setInputConfig(kwinApp()->inputConfig()); | 1869 | conn->setInputConfig(kwinApp()->inputConfig()); | ||
1870 | conn->updateLEDs(m_keyboard->xkb()->leds()); | 1870 | conn->updateLEDs(m_keyboard->xkb()->leds()); | ||
1871 | waylandServer()->updateKeyState(m_keyboard->xkb()->leds()); | ||||
1872 | connect(m_keyboard, &KeyboardInputRedirection::ledsChanged, waylandServer(), &WaylandServer::updateKeyState); | ||||
1871 | connect(m_keyboard, &KeyboardInputRedirection::ledsChanged, conn, &LibInput::Connection::updateLEDs); | 1873 | connect(m_keyboard, &KeyboardInputRedirection::ledsChanged, conn, &LibInput::Connection::updateLEDs); | ||
1872 | connect(conn, &LibInput::Connection::eventsRead, this, | 1874 | connect(conn, &LibInput::Connection::eventsRead, this, | ||
1873 | [this] { | 1875 | [this] { | ||
1874 | m_libInput->processEvents(); | 1876 | m_libInput->processEvents(); | ||
1875 | }, Qt::QueuedConnection | 1877 | }, Qt::QueuedConnection | ||
1876 | ); | 1878 | ); | ||
1877 | conn->setup(); | 1879 | conn->setup(); | ||
1878 | connect(conn, &LibInput::Connection::pointerButtonChanged, m_pointer, &PointerInputRedirection::processButton); | 1880 | connect(conn, &LibInput::Connection::pointerButtonChanged, m_pointer, &PointerInputRedirection::processButton); | ||
▲ Show 20 Lines • Show All 546 Lines • Show Last 20 Lines |