Bug 99411 - Xwayland is missing tablet support
Summary: Xwayland is missing tablet support
Alias: None
Product: Wayland
Classification: Unclassified
Component: XWayland (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium major
Assignee: Wayland bug list
QA Contact: Xorg Project Team
Depends on:
Reported: 2017-01-14 19:52 UTC by jonas@thiem.email
Modified: 2017-08-24 15:14 UTC (History)
5 users (show)

See Also:
i915 platform:
i915 features:


Description jonas@thiem.email 2017-01-14 19:52:52 UTC
If using GNOME wayland right now, no GTK2 application (this includes GIMP and xournal, but also just any regular applications & their UIs and buttons and all) will respond to the wacom pen. Comments on this fedora bug report have indicated this might be an upstream problem in Wayland or XWayland: https://bugzilla.redhat.com/show_bug.cgi?id=1362206

This means that effectively, on any machine with a wacom pen that is actually used by the user, Wayland isn't really an option and won't be until either this is fixed or all GTK2 applications in use migrated to GTK3 - which doesn't really seem to be realistically happening any time soon.

Therefore, this should be addressed given that I assume standalone X11 is planned to be phased out eventually in the near future.

(This bug is also the only reason I am still using the GNOME X11 session on my laptop instead of a new shiny Wayland session.)
Comment 1 Pekka Paalanen 2017-01-16 11:20:36 UTC
Peter, is this just a missing implementation in Xwayland or something more sinister?
Comment 2 Daniel Stone 2017-01-16 12:30:31 UTC
(In reply to Pekka Paalanen from comment #1)
> Peter, is this just a missing implementation in Xwayland or something more
> sinister?

Yeah, we don't have any pen/tablet support in Xwayland at all.
Comment 3 jonas@thiem.email 2017-01-16 15:12:35 UTC
In case this is any easier, I am sure actual pen-heavy applications like xournal or GIMP which require detail input can be convinced to port to GTK3 to get proper advanced pen events. (googling for both reveals both projects already made significant progress on porting efforts)

However, the problem is that the pen doesn't even appear to emit the most basic mouse events on GTK2, making them effectively entirely unusable with the pen even if they don't require any pressure strength or any other sort of special pen events.

So it would probably be sufficient if just basic emulated mouse events were generated, if that saves you any time. (and then xournal/GIMP would need to be informed that GTK3 is required for proper operation under Wayland, since at least xournal seems to have almost fully ported but then abandoned it since they saw no good reason to switch)
Comment 4 Peter Hutterer 2017-01-16 21:41:14 UTC
As daniels said, this is a generic issue: XWayland is missing tablet support. I'll try to bump this up in my todo list
Comment 5 nuno ferreira 2017-07-27 16:23:37 UTC
Since it's been half a year, please allow me to ask if there's any updates on this issue...

Comment 6 Peter Hutterer 2017-07-28 06:15:37 UTC
tablet support was merged in februrary with the commits leading up to 8475e6360ce31551d50fd63a26f7a44d1e8928f2
Comment 7 nuno ferreira 2017-07-28 07:35:55 UTC
Ok, great. from the user point of view I guess the question then shifts to when will xorg-server 1.20 be released and picked up by distros

Thanks for the support
Comment 8 rockorequin 2017-08-24 15:14:30 UTC
FWIW, it looks like those patches for wacom in xorg-server 1.20 apply without too much trouble to 1.19.3 (see https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1712571). My wacom tablet works nicely now with the patched xorg-server on xwayland apps like firefox and gimp.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.