Add touch support to x11 windowed platform
Needs ReviewPublic

Authored by graesslin on Wed, Dec 5, 6:13 PM.

Details

Reviewers
None
Group Reviewers
KWin
Summary

This change inits XInput extension, listens for touch events and
forwards them to our platform API. Thus touch events are forwarded on a
nested wayland session on X11.

Please note that I only tested this change on Xwayland.

Test Plan

Run nested kwin_wayland with two outputs and looked into debug console

Diff Detail

Repository
R108 KWin
Branch
x11-nested-touch
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 5733
Build 5751: arc lint + arc unit
graesslin created this revision.Wed, Dec 5, 6:13 PM
Restricted Application added a project: KWin. · View Herald TranscriptWed, Dec 5, 6:13 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
graesslin requested review of this revision.Wed, Dec 5, 6:13 PM
zzag added a subscriber: zzag.Wed, Dec 5, 6:27 PM
zzag added inline comments.
plugins/platforms/x11/windowed/x11windowed_backend.cpp
145

Shouldn't it be just m_hasXInput = true?

232

Missing Q_UNUSED.

graesslin added inline comments.Wed, Dec 5, 8:07 PM
plugins/platforms/x11/windowed/x11windowed_backend.cpp
145

No, that was on purpose. It's the minimum version supporting touch.