Diffusion KWin e3d79cdda6ee

Reduce code duplication for processing input events

Authored by graesslin on Dec 24 2016, 10:00 AM.

Description

Reduce code duplication for processing input events

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.

Reviewers: KWin, Plasma

Subscribers: plasma-devel, kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D3806

Details

Committed
graesslinDec 27 2016, 4:38 PM
Differential Revision
D3806: Reduce code duplication for processing input events
Parents
R108:bba18a1ba812: Fix the osd re-placement on X11
Branches
Unknown
Tags
Unknown