Add workaround for touch input offset for decorated windows
ClosedPublic

Authored by graesslin on Jan 10 2017, 7:32 PM.

Details

Summary

If a Wayland window is decorated the decoration size was not considered
when passing touch points to the Wayland window. For pointer input this
is considered and implemented through the input transformation matrix
which KWayland::Server::SeatInterface accepts. This should also be done
for Touch. Unfortunately the frameworks version for Plasma 5.9 is already
tagged and done and we cannot depend on new API.

Thus this change tries to workaround by calculating the proper offset
through the input transformation matrix. It isn't nice but fixes the
problem for now.

BUG: 374778

Test Plan

Only in unit test, real test still missing

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 updated this revision to Diff 10004.Jan 10 2017, 7:32 PM
graesslin retitled this revision from to Add workaround for touch input offset for decorated windows.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: Plasma on Wayland, KWin.
Restricted Application added projects: Plasma on Wayland, KWin. · View Herald TranscriptJan 10 2017, 7:32 PM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript

ping, important for Plasma 5.9

davidedmundson accepted this revision.Jan 24 2017, 9:44 PM
davidedmundson added a reviewer: davidedmundson.
This revision is now accepted and ready to land.Jan 24 2017, 9:44 PM
This revision was automatically updated to reflect the committed changes.