RFR: 8217955: Problems with touch input and JavaFX 11

Johan Vos jvos at openjdk.java.net
Wed Apr 7 12:40:37 UTC 2021


On Mon, 5 Apr 2021 18:59:52 GMT, Jose Pereda <jpereda at openjdk.org> wrote:

> This PR filters out `GDK_TOUCH_EVENT_MASK` from `GDK_ALL_EVENTS_MASK` to prevent touch events from being used instead of regular mouse events on Linux platforms. Note that the touch events will be delivered as mouse pressed/dragged events.
> 
> Since we still compile with GTK 2.x the bit flag (that was introduced in GTK 3.4) needs to be defined.
> 
> This PR has been tested on Ubuntu 20.04 with a touch enabled display.

This fixes a current issue, and while a solution that adds native touch-event support is highly encouraged, this fix will already improve the current situation.

-------------

Marked as reviewed by jvos (Reviewer).

PR: https://git.openjdk.java.net/jfx/pull/457


More information about the openjfx-dev mailing list