WestonTouchScreenIssues: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Document Weston touch input issues)
 
mNo edit summary
Line 2: Line 2:


Prior to version 1.7 of the [http://wayland.freedesktop.org Weston] compositor touch screen events are incorrectly dispatched in some configurations, rendering Qt unresponsive to touch events.
Prior to version 1.7 of the [http://wayland.freedesktop.org Weston] compositor touch screen events are incorrectly dispatched in some configurations, rendering Qt unresponsive to touch events.
== Workaround ==
For situations where using a recent version of Weston or switching to the libinput backend is not possible, we provide a patch for Weston's evdev backend. The patch is included in [http://www.qt.io/qt-for-device-creation/ Qt For Device Creation] in releases made after 2015-08-20, but for convenience also provided separately [[File:0001-Adapt-changes-made-in-libinput-src-evdev.c-for-touch.patch||here]].


== Problem Description ==
== Problem Description ==
Line 33: Line 37:
|            || libinput ||  
|            || libinput ||  
|}
|}
For situations where using a recent version of Weston or switching to the libinput backend is not possible, we provide a patch for Weston's evdev backend. The patch is included in [http://www.qt.io/qt-for-device-creation/ Qt For Device Creation] in releases made after 2015-08-20, but for convenience also provided separately [[File:0001-Adapt-changes-made-in-libinput-src-evdev.c-for-touch.patch||here]].

Revision as of 05:51, 21 August 2015

Issues with Touch Screen Input when using Weston

Prior to version 1.7 of the Weston compositor touch screen events are incorrectly dispatched in some configurations, rendering Qt unresponsive to touch events.

Workaround

For situations where using a recent version of Weston or switching to the libinput backend is not possible, we provide a patch for Weston's evdev backend. The patch is included in Qt For Device Creation in releases made after 2015-08-20, but for convenience also provided separately here.

Problem Description

Qt relies on touch frame events that indicate discrete sampling windows of touch devices to implement reliable multi touch support. Unfortunately several releases of the Weston reference compositor fail to send out these events correctly.

The issue is present in the Weston evdev input backend until its removal in Weston 1.7. In the libinput backend the same issue is fixed in Weston 1.5. The table below summarizes the situation.

Weston Release Weston Input Backend Incorrect Touch Frame Delivery
Weston 1.4 evdev yes
libinput Backend not available
Weston 1.5 evdev yes
libinput
Weston 1.6 evdev yes
libinput
Weston 1.7 evdev Backend not available
libinput
Weston 1.8 evdev Backend not available
libinput