Skip to content

wayland/relativepointer: don't scale non-accelerated pointer values

Xaver Hugl requested to merge work/cherry-pick-47f800c1 into Plasma/6.2

Normally, pointer values are in logical units, which get implicitly scaled with the scale of the screen, so scaling them when scaling Xwayland makes sense. If the pointer moves too fast for the user with that scaling, they will simply use the libinput pointer acceleration setting to reduce that speed in a manner that's uniform for all their screens. However, unaccelerated values are not affected by that setting, and thus they should also not be affected by the screen's scale. This commit removes that scaling for Xwayland, which matches SDL's usage of the value in Wayland native mode and brings it in line with user expectations.

BUG: 483067

(cherry picked from commit 47f800c1)

Co-authored-by: Xaver Hugl xaver.hugl@gmail.com

Merge request reports

Loading