Diffusion KWin d2a9232ad34f

Pass SwitchEvent from LibInput through KWin and add to DebugConsole

Authored by graesslin on Dec 27 2017, 7:25 PM.

Description

Pass SwitchEvent from LibInput through KWin and add to DebugConsole

Summary:
This change introduces a new SwitchEvent and passes it through the
InputEventSpy and InputEventFilter. The DebugConsoleFilter implements it
so that the events can be monitored in the debug console.

Test Plan: Untested as my only device with such switches has too old libinput

Reviewers: KWin, Plasma

Subscribers: plasma-devel, kwin

Tags: Plasma

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