Summary: | Touchscreen offset caused by decorations | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Kyle Kauffman <kdebugs> |
Component: | input | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Flags: | mgraesslin:
Wayland+
mgraesslin: ReviewRequest+ |
Priority: | NOR | ||
Version First Reported In: | 5.8.5 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
URL: | https://phabricator.kde.org/D4074 | ||
Latest Commit: | https://commits.kde.org/kwin/7e89c518237b175ecdd4df33bb4f03c2bbffb0ab | Version Fixed In: | |
Sentry Crash Report: |
Description
Kyle Kauffman
2017-01-08 20:09:34 UTC
Maybe related to the decorations? Could you test whether removing the deco fixes the offset? Just gave it a try on my touch screen and noticed the offset. I'm quite certain it's related to decos. Interesting that I didn't notice myself. Shows how often I use the touch screen. Git commit e616925fb0528602906aa888318e211a91382ce4 by Martin Gräßlin. Committed on 10/01/2017 at 18:27. Pushed by graesslin into branch 'master'. [autotests/integration] Add test case for touch and decoration The test for touch points is extended for decorated windows and as the test shows the client pos offset is not considered correctly. M +31 -7 autotests/integration/touch_input_test.cpp https://commits.kde.org/kwin/e616925fb0528602906aa888318e211a91382ce4 Unfortunately it looks like it needs a fix in KWayland and that means we cannot fix for Plasma 5.9. We missed the time slot by just a few days :-( At least a workaround can be done even without new API in KWayland: https://phabricator.kde.org/D4074 Looks great-- unfortunately I can't test myself yet as I've had no success getting master to build on my setup. Git commit 7e89c518237b175ecdd4df33bb4f03c2bbffb0ab by Martin Gräßlin. Committed on 25/01/2017 at 12:58. Pushed by graesslin into branch 'Plasma/5.9'. Add workaround for touch input offset for decorated windows 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. Test Plan: Only in unit test, real test still missing Reviewers: #plasma_on_wayland, #kwin Subscribers: plasma-devel, kwin Tags: #plasma_on_wayland, #kwin Differential Revision: https://phabricator.kde.org/D4074 M +0 -3 autotests/integration/touch_input_test.cpp M +4 -2 touch_input.cpp https://commits.kde.org/kwin/7e89c518237b175ecdd4df33bb4f03c2bbffb0ab |