Changeset View
Changeset View
Standalone View
Standalone View
kcms/touchpad/src/backends/x11/xlibbackend.cpp
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Line(s) | |||||
159 | 159 | | |||
160 | void XlibBackend::setTouchpadEnabled(bool enable) | 160 | void XlibBackend::setTouchpadEnabled(bool enable) | ||
161 | { | 161 | { | ||
162 | if (!m_device) { | 162 | if (!m_device) { | ||
163 | return; | 163 | return; | ||
164 | } | 164 | } | ||
165 | 165 | | |||
166 | m_device->setEnabled(enable); | 166 | m_device->setEnabled(enable); | ||
167 | | ||||
168 | // FIXME? This should not be needed, m_notifications should trigger | ||||
169 | // a propertyChanged signal when we enable/disable the touchpad, | ||||
170 | // that will emit touchpadStateChanged, but for some reason | ||||
171 | // XlibNotifications is not getting the property change events | ||||
172 | // so we just emit touchpadStateChanged from here as a workaround | ||||
173 | Q_EMIT touchpadStateChanged(); | ||||
167 | } | 174 | } | ||
168 | 175 | | |||
169 | void XlibBackend::setTouchpadOff(TouchpadBackend::TouchpadOffState state) | 176 | void XlibBackend::setTouchpadOff(TouchpadBackend::TouchpadOffState state) | ||
170 | { | 177 | { | ||
171 | if (!m_device) { | 178 | if (!m_device) { | ||
172 | return; | 179 | return; | ||
173 | } | 180 | } | ||
174 | 181 | | |||
▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines |