Changeset View
Changeset View
Standalone View
Standalone View
input.cpp
Show First 20 Lines • Show All 1801 Lines • ▼ Show 20 Line(s) | 1801 | connect(conn, &LibInput::Connection::hasAlphaNumericKeyboardChanged, this, | |||
---|---|---|---|---|---|
1802 | [this] (bool set) { | 1802 | [this] (bool set) { | ||
1803 | if (m_libInput->isSuspended()) { | 1803 | if (m_libInput->isSuspended()) { | ||
1804 | return; | 1804 | return; | ||
1805 | } | 1805 | } | ||
1806 | // TODO: this should update the seat, only workaround for QTBUG-54371 | 1806 | // TODO: this should update the seat, only workaround for QTBUG-54371 | ||
1807 | emit hasAlphaNumericKeyboardChanged(set); | 1807 | emit hasAlphaNumericKeyboardChanged(set); | ||
1808 | } | 1808 | } | ||
1809 | ); | 1809 | ); | ||
1810 | connect(conn, &LibInput::Connection::hasTabletModeSwitchChanged, this, | ||||
1811 | [this] (bool set) { | ||||
1812 | if (m_libInput->isSuspended()) { | ||||
1813 | return; | ||||
1814 | } | ||||
1815 | emit hasTabletModeSwitchChanged(set); | ||||
1816 | } | ||||
1817 | ); | ||||
1810 | connect(conn, &LibInput::Connection::hasPointerChanged, this, | 1818 | connect(conn, &LibInput::Connection::hasPointerChanged, this, | ||
1811 | [this, s] (bool set) { | 1819 | [this, s] (bool set) { | ||
1812 | if (m_libInput->isSuspended()) { | 1820 | if (m_libInput->isSuspended()) { | ||
1813 | return; | 1821 | return; | ||
1814 | } | 1822 | } | ||
1815 | s->setHasPointer(set); | 1823 | s->setHasPointer(set); | ||
1816 | } | 1824 | } | ||
1817 | ); | 1825 | ); | ||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | |||||
1874 | #if HAVE_INPUT | 1882 | #if HAVE_INPUT | ||
1875 | if (m_libInput) { | 1883 | if (m_libInput) { | ||
1876 | return m_libInput->hasAlphaNumericKeyboard(); | 1884 | return m_libInput->hasAlphaNumericKeyboard(); | ||
1877 | } | 1885 | } | ||
1878 | #endif | 1886 | #endif | ||
1879 | return true; | 1887 | return true; | ||
1880 | } | 1888 | } | ||
1881 | 1889 | | |||
1890 | bool InputRedirection::hasTabletModeSwitch() | ||||
1891 | { | ||||
1892 | #if HAVE_INPUT | ||||
1893 | if (m_libInput) { | ||||
1894 | return m_libInput->hasTabletModeSwitch(); | ||||
1895 | } | ||||
1896 | #endif | ||||
1897 | return false; | ||||
graesslin: false | |||||
1898 | } | ||||
1899 | | ||||
1882 | void InputRedirection::setupLibInputWithScreens() | 1900 | void InputRedirection::setupLibInputWithScreens() | ||
1883 | { | 1901 | { | ||
1884 | #if HAVE_INPUT | 1902 | #if HAVE_INPUT | ||
1885 | if (!screens() || !m_libInput) { | 1903 | if (!screens() || !m_libInput) { | ||
1886 | return; | 1904 | return; | ||
1887 | } | 1905 | } | ||
1888 | m_libInput->setScreenSize(screens()->size()); | 1906 | m_libInput->setScreenSize(screens()->size()); | ||
1889 | m_libInput->updateScreens(); | 1907 | m_libInput->updateScreens(); | ||
▲ Show 20 Lines • Show All 324 Lines • Show Last 20 Lines |
false