Changeset View
Changeset View
Standalone View
Standalone View
input.cpp
Show First 20 Lines • Show All 1855 Lines • ▼ Show 20 Line(s) | |||||
1856 | 1856 | | |||
1857 | void InputRedirection::setupLibInputWithScreens() | 1857 | void InputRedirection::setupLibInputWithScreens() | ||
1858 | { | 1858 | { | ||
1859 | #if HAVE_INPUT | 1859 | #if HAVE_INPUT | ||
1860 | if (!screens() || !m_libInput) { | 1860 | if (!screens() || !m_libInput) { | ||
1861 | return; | 1861 | return; | ||
1862 | } | 1862 | } | ||
1863 | m_libInput->setScreenSize(screens()->size()); | 1863 | m_libInput->setScreenSize(screens()->size()); | ||
1864 | m_libInput->updateScreens(); | ||||
1864 | connect(screens(), &Screens::sizeChanged, this, | 1865 | connect(screens(), &Screens::sizeChanged, this, | ||
1865 | [this] { | 1866 | [this] { | ||
1866 | m_libInput->setScreenSize(screens()->size()); | 1867 | m_libInput->setScreenSize(screens()->size()); | ||
1867 | } | 1868 | } | ||
1868 | ); | 1869 | ); | ||
1870 | connect(screens(), &Screens::changed, m_libInput, &LibInput::Connection::updateScreens); | ||||
1869 | #endif | 1871 | #endif | ||
1870 | } | 1872 | } | ||
1871 | 1873 | | |||
1872 | void InputRedirection::processPointerMotion(const QPointF &pos, uint32_t time) | 1874 | void InputRedirection::processPointerMotion(const QPointF &pos, uint32_t time) | ||
1873 | { | 1875 | { | ||
1874 | m_pointer->processMotion(pos, time); | 1876 | m_pointer->processMotion(pos, time); | ||
1875 | } | 1877 | } | ||
1876 | 1878 | | |||
▲ Show 20 Lines • Show All 307 Lines • Show Last 20 Lines |