Home
Phabricator
Search
Log In
Differential
D20186
Diff 57933
kcms/touchpad/src/backends/x11/libinputtouchpad.h
Changeset View
Equivalent and more concise is:
return m_supportsDisableEvents.avail && m_supportsDisableEvents.val ;
For other getters below as well.
Long term try to not access the member variables from child class though. You could just have these functions in the parent class and just always check if avail is true before accessing the value. This will change the behavior on Wayland backend as well, but it should be fine (let's do this after release though to not risk regressions).