Skip to content

wayland/text-input: Don't crash on wrong parameters to delete_surrounding()

The compositor should not crash when a client reports an incorrect cursor or anchor position with its surrounding text, so warn and return instead of asserting here.

This crash currently happens when pressing the OSKs backspace key after gtk4 reported an outdated cursor/anchor position.

Merge request reports