graesslin created this revision. graesslin added reviewers: Plasma on Wayland, KWin. Restricted Application added subscribers: kwin, plasma-devel. Restricted Application added projects: Plasma on Wayland, KWin.
REVISION 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 REPOSITORY R108 KWin BRANCH touch-input-deco-workaround REVISION DETAIL https://phabricator.kde.org/D4074 AFFECTED FILES autotests/integration/touch_input_test.cpp touch_input.cpp EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, #plasma_on_wayland, #kwin Cc: plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, andreaska, eliasp, sebas