Fixes: [38791] Fix handling of cursor position clipping
# FIXME: Related to bug 42631?
