kwin/autotests/libinput
Jesse Pullinen 0eba3f3c18 Fix TouchEvent::id() returning -1, fixes a crash
Summary:
Libinput returns -1 when calling libinput_event_touch_get_slot on an event
from a single-touch touchscreen. The returned value is used in
DecorationEventFilter to determine the touch which is acting on it. The value -1
is used to signify that the decoration is not being acted on. Thus when
releasing the touch, it checks whether it was being dragged, and as it thinks
it isn't, it doesn't handle it and the decoration is still being dragged.
Clicking on the decoration then crashes kwin.

Test Plan: Move a window by dragging the decoration with a single-touch touchscreen.

Reviewers: #kwin, graesslin

Reviewed By: #kwin, graesslin

Subscribers: graesslin, kwin, #kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D7854
2017-09-19 07:11:40 +03:00
..
CMakeLists.txt [libinput] Load/store device configuration 2016-11-07 13:45:48 +01:00
context_test.cpp [libinput] A not valid LibInput::Context should return -1 as filedescriptor 2016-06-02 16:23:23 +02:00
device_test.cpp [libinput] Change unset of scroll method and acceleration profile 2016-12-06 13:45:54 +01:00
gesture_event_test.cpp [libinput] Add support for gesture events 2016-08-08 09:15:06 +02:00
input_event_test.cpp Support for relative pointer motion events 2016-10-12 11:26:46 +02:00
key_event_test.cpp
mock_libinput.cpp [libinput] Add more support for pointer devices, in particular touchpads 2016-12-02 14:58:56 +01:00
mock_libinput.h [libinput] Add more support for pointer devices, in particular touchpads 2016-12-02 14:58:56 +01:00
mock_udev.cpp
mock_udev.h
pointer_event_test.cpp Support for relative pointer motion events 2016-10-12 11:26:46 +02:00
touch_event_test.cpp Fix TouchEvent::id() returning -1, fixes a crash 2017-09-19 07:11:40 +03:00