Commit 2b098f69 authored by Albert Astals Cid's avatar Albert Astals Cid

Workaround the touchpad toggle button not working

Summary: BUGS: 370588

Test Plan:
Without it the touchpad toggle at my laptop just toggles once
now it works fine all the time

Reviewers: davidedmundson, xuetianweng

Reviewed By: xuetianweng

Subscribers: knambiar, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D10498
parent 502e8dc1
......@@ -164,6 +164,13 @@ void XlibBackend::setTouchpadEnabled(bool enable)
}
m_device->setEnabled(enable);
// FIXME? This should not be needed, m_notifications should trigger
// a propertyChanged signal when we enable/disable the touchpad,
// that will emit touchpadStateChanged, but for some reason
// XlibNotifications is not getting the property change events
// so we just emit touchpadStateChanged from here as a workaround
Q_EMIT touchpadStateChanged();
}
void XlibBackend::setTouchpadOff(TouchpadBackend::TouchpadOffState state)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment