graesslin created this revision. graesslin added reviewers: KWin, Plasma. Restricted Application added a project: KWin. Restricted Application added subscribers: kwin, plasma-devel.
REVISION SUMMARY For every input event we have similar code. We go through all InputFilters, invoke a method with some arguments and check whether the filter returns true. Instead of duplicating that logic everywhere, there is now one method in InputRedirection which takes a std::function to call on the input filters. The std::function is supposed to be generated with a std::bind on the InputFilter::method with all the required arguments. REPOSITORY R108 KWin BRANCH input-filters REVISION DETAIL https://phabricator.kde.org/D3806 AFFECTED FILES input.cpp input.h keyboard_input.cpp pointer_input.cpp touch_input.cpp EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, #kwin, #plasma Cc: plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas