Add touch support to x11 windowed platform
ClosedPublic

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

Details

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin created this revision.Dec 5 2018, 6:13 PM
Restricted Application added a project: KWin. · View Herald TranscriptDec 5 2018, 6:13 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
graesslin requested review of this revision.Dec 5 2018, 6:13 PM
zzag added a subscriber: zzag.Dec 5 2018, 6:27 PM
zzag added inline comments.
plugins/platforms/x11/windowed/x11windowed_backend.cpp
146

Shouldn't it be just m_hasXInput = true?

233

Missing Q_UNUSED.

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

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

davidedmundson accepted this revision.Dec 19 2018, 1:44 PM
davidedmundson added a subscriber: davidedmundson.
davidedmundson added inline comments.
plugins/platforms/x11/windowed/x11windowed_backend.cpp
253

would be best in x11/common as a new file rather than duplicating it

This revision is now accepted and ready to land.Dec 19 2018, 1:44 PM
graesslin added inline comments.Dec 19 2018, 5:42 PM
plugins/platforms/x11/windowed/x11windowed_backend.cpp
253

Sure can do that. I didn't want to touch the standalone code as I don't test that any more.

graesslin updated this revision to Diff 47969.Dec 21 2018, 4:23 PM

Move GeEventMemMover into dedicated header

This revision was automatically updated to reflect the committed changes.