kwin/tests
Martin Gräßlin 69cbb40903 Pass LibInput::Device* through the event handlers
Summary:
The signals emitted by LibInput::Connection carry the Device for which
the input event was received. This Device is passed to the input handlers.

Custom event classes are added which extend QMouseEvent, QKeyEvent and
QWheelEvent respectively and expose the Device. The Device is only passed
around as a forward declared pointer, so even if compiled without libinput
support, it should still compile.

Event handlers which need to get access to the Device can now just cast
the event pointer to the custom class and access it. This can be used in
future to handle device specific key codes, etc.

As we don't have a proper event classes for touch events the event
handlers do not yet have access to the Device. Here the internal API
needs to be adjusted in future.

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D1667
2016-05-30 15:26:37 +02:00
..
CMakeLists.txt [libinput] Support toggleTouchpad 2016-05-11 14:19:25 +02:00
libinputtest.cpp Pass LibInput::Device* through the event handlers 2016-05-30 15:26:37 +02:00
normalhintsbasesizetest.cpp [kwin] Add a test application for testing size increment 2014-01-30 15:28:12 +01:00
screenedgeshowtest.cpp Add hint similar to autohide to raise/lower a window 2015-10-12 10:37:16 +01:00
unmapdestroytest.qml Try to wait for DESTROY_NOTIFY before releasing an Unmanaged 2014-04-16 13:32:11 +02:00
waylandclienttest.cpp [tests] Support a trasient window in the waylandclienttest 2015-10-01 14:03:48 +02:00
waylandclienttest.h [tests] Support a trasient window in the waylandclienttest 2015-10-01 14:03:48 +02:00