Skip to content

backends/libinput: Fix tablet cursor going out of bound

Matteo Di Noia requested to merge dmatteo/kwin:master into master

The cursor because of the specification of the libinput API (see https://wayland.freedesktop.org/libinput/doc/latest/tablet-support.html#out-of-bounds-motion-events) could be transported outside the bounderies, which cause problem with tiling. This merge request want to address this bug by using a std::clamp() the result.

BUG: 469008

Edited by Matteo Di Noia

Merge request reports